From 55e9af71fcfc61fa061a1482d3fbb4da00441c35 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Mon, 29 Jun 2020 16:18:45 -0700 Subject: [PATCH] fix warnings in parser_pyx build --- can/parser_pyx.pyx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/can/parser_pyx.pyx b/can/parser_pyx.pyx index d7eb0c7..f12b2e6 100644 --- a/can/parser_pyx.pyx +++ b/can/parser_pyx.pyx @@ -49,7 +49,8 @@ cdef class CANParser: self.can_invalid_cnt = CAN_INVALID_CNT - num_msgs = self.dbc[0].num_msgs + cdef int i + cdef int num_msgs = self.dbc[0].num_msgs for i in range(num_msgs): msg = self.dbc[0].msgs[i] name = msg.name.decode('utf8')