From f332501edb446cc3c49dda3dff058ff9eb00cba1 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Tue, 4 Dec 2018 12:25:01 +0100 Subject: 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 --- ctl-lib/ctl-lua.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- cgit 1.2.3-korg