From: Romain Forlot Date: Wed, 16 May 2018 21:33:45 +0000 (+0200) Subject: Fix compilation warning X-Git-Tag: 5.99.1~1 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=438bf4912a1174c63fac77fe72e3b320c589f431;p=apps%2Fagl-service-can-low-level.git Fix compilation warning Change-Id: I3ea7b3aa91d4251f90a4ccf5da83ae8de7a58db4 Signed-off-by: Romain Forlot --- diff --git a/low-can-binding/binding/low-can-cb.cpp b/low-can-binding/binding/low-can-cb.cpp index bff5c935..76520f45 100644 --- a/low-can-binding/binding/low-can-cb.cpp +++ b/low-can-binding/binding/low-can-cb.cpp @@ -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++)