diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2018-12-04 12:25:01 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2018-12-12 17:44:42 +0100 |
commit | 76e47a2407062b38fed687e078cbc4e3598aa8a6 (patch) | |
tree | 559b7851b931a447d5f582b23409f24652680d3f /ctl-lib/ctl-lua.c | |
parent | 61f072c244fcf9b375f7066ef1798b60b234a956 (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.c | 2 |
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)); |