summaryrefslogtreecommitdiffstats
path: root/low-can-binding
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-05-16 23:33:45 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-05-16 23:33:45 +0200
commit438bf4912a1174c63fac77fe72e3b320c589f431 (patch)
treed06b95dafdc5389bba04b8c64929cf90953c77ce /low-can-binding
parent7a0b906a3b984d34ad608be38f94f07e85fe08d0 (diff)
Fix compilation warning
Change-Id: I3ea7b3aa91d4251f90a4ccf5da83ae8de7a58db4 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'low-can-binding')
-rw-r--r--low-can-binding/binding/low-can-cb.cpp2
1 files changed, 1 insertions, 1 deletions
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++)