aboutsummaryrefslogtreecommitdiffstats
path: root/ctl-lib/ctl-lua.c
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-04-30 23:07:23 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-12-13 15:02:54 +0100
commite8b0b19bba131922ebd1beb4ec0dd5e1c27863ae (patch)
tree4efdae0edc96212eaa15fb180732b8b73a04cc49 /ctl-lib/ctl-lua.c
parente48aaca4ff9c304dff7d51aa8fcf8ca026a2cf26 (diff)
Fix conversion compilation warning
Change-Id: I0d5350c1e454bc118e4470ae7ff0eafe253cd2bf Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'ctl-lib/ctl-lua.c')
-rw-r--r--ctl-lib/ctl-lua.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ctl-lib/ctl-lua.c b/ctl-lib/ctl-lua.c
index 3f3fe81..757956e 100644
--- a/ctl-lib/ctl-lua.c
+++ b/ctl-lib/ctl-lua.c
@@ -111,7 +111,7 @@ STATIC int LuaPushArgument (CtlSourceT *source, json_object *argsJ) {
break;
}
case json_type_array: {
- int length= json_object_array_length(argsJ);
+ size_t length= json_object_array_length(argsJ);
lua_newtable (luaState);
for (int idx=0; idx < length; idx ++) {
json_object *val=json_object_array_get_idx(argsJ, idx);