Fix compilation warning
authorRomain Forlot <romain.forlot@iot.bzh>
Wed, 16 May 2018 21:33:45 +0000 (23:33 +0200)
committerRomain Forlot <romain.forlot@iot.bzh>
Wed, 16 May 2018 21:33:45 +0000 (23:33 +0200)
Change-Id: I3ea7b3aa91d4251f90a4ccf5da83ae8de7a58db4
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
low-can-binding/binding/low-can-cb.cpp

index bff5c93..76520f4 100644 (file)
@@ -429,7 +429,7 @@ static int write_raw_frame(const std::string& bus_name, uint32_t can_id, uint8_t
        cf.can_dlc = can_dlc;
 
        struct json_object *x;
-       int n = json_object_array_length(can_data);
+       size_t n = json_object_array_length(can_data);
        if(n <= 8)
        {
                for (int i = 0 ; i < n ; i++)