mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 12:20:41 +00:00
minor fix
This commit is contained in:
@@ -151,7 +151,7 @@ int64_new(lua_State *L) {
|
||||
if (base < 2) {
|
||||
luaL_error(L, "base must be >= 2");
|
||||
}
|
||||
const char * str = lua_tostring(L, 1);
|
||||
const char * str = luaL_checkstring(L, 1);
|
||||
n = strtoll(str, NULL, base);
|
||||
_pushint64(L,n);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user