summaryrefslogtreecommitdiffstats
path: root/ctl-lib/ctl-lua.c
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-05 15:22:27 +0100
commitf332501edb446cc3c49dda3dff058ff9eb00cba1 (patch)
treec2109e1a0b5064090b7c3dd6e9d4beae6d9da1be /ctl-lib/ctl-lua.c
parentc3fa161dd4ce60236153e827027b1e1f09e48033 (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/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 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));