We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6426798 commit a1e7eb6Copy full SHA for a1e7eb6
1 file changed
src/lceasy.c
@@ -790,7 +790,13 @@ static int lcurl_info_get_long_(lua_State *L, int opt){
790
return lcurl_fail_ex(L, p->err_mode, LCURL_ERROR_EASY, code);
791
}
792
793
- lua_pushnumber(L, val);
+#if LUA_VERSION_NUM >= 503 /* Lua 5.3 */
794
+ if(sizeof(lua_Integer) >= sizeof(val))
795
+ lua_pushinteger(L, (lua_Integer)val);
796
+ else
797
+#endif
798
+ lua_pushnumber(L, val);
799
+
800
return 1;
801
802
0 commit comments