summaryrefslogtreecommitdiffstats
path: root/ctl-lib
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-12-04 12:25:01 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2018-12-13 15:02:55 +0100
commit128a72b79eee725454ac631e1b6a87908cee9620 (patch)
treec2109e1a0b5064090b7c3dd6e9d4beae6d9da1be /ctl-lib
parent39b20e02e650f37f187272688005ce3cd152752a (diff)
Retrieve by default an int64 instead of int
This avoids to cast to int an int64, used by example to retrieve a nanosecond timestamp variable. Change-Id: I4337f37009059f19b8ad6a910c76e844493d22f3 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'ctl-lib')
-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 ac2b499..696a5de 100644
--- a/ctl-lib/ctl-lua.c
+++ b/ctl-lib/ctl-lua.c
@@ -132,7 +132,7 @@ static int LuaPushArgument(CtlSourceT *source, json_object *argsJ) {
break;
}
case json_type_int:
- lua_pushinteger(luaState, json_object_get_int(argsJ));
+ lua_pushinteger(luaState, json_object_get_int64(argsJ));
break;
case json_type_string:
lua_pushstring(luaState, json_object_get_string(argsJ));