We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31892e7 commit 70a3f7aCopy full SHA for 70a3f7a
src/lua_sysctl.c
@@ -514,10 +514,10 @@ luaA_sysctl_get(lua_State *L)
514
else
515
lua_pushinteger(L, mv);
516
} else {
517
- if (intlen > sizeof(lua_Unsigned))
+ if (intlen >= sizeof(lua_Integer))
518
lua_pushnumber(L, umv);
519
520
- lua_pushunsigned(L, umv);
+ lua_pushinteger(L, umv);
521
}
522
lua_settable(L, -3);
523
len -= intlen;
@@ -582,7 +582,7 @@ luaA_sysctl_IK2farenheit(lua_State *L)
582
*/
583
584
585
-static const luaL_Reg lua_sysctl[] =
+static const luaL_reg lua_sysctl[] =
586
{
587
{"get", luaA_sysctl_get},
588
{"set", luaA_sysctl_set},
0 commit comments