mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 04:33:05 +00:00
update to lua 5.3, remove lua unsigned api
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
static int
|
||||
ltotal(lua_State *L) {
|
||||
size_t t = malloc_used_memory();
|
||||
lua_pushunsigned(L, t);
|
||||
lua_pushinteger(L, (lua_Integer)t);
|
||||
|
||||
return 1;
|
||||
}
|
||||
@@ -14,7 +14,7 @@ ltotal(lua_State *L) {
|
||||
static int
|
||||
lblock(lua_State *L) {
|
||||
size_t t = malloc_memory_block();
|
||||
lua_pushunsigned(L, t);
|
||||
lua_pushinteger(L, (lua_Integer)t);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user