Parameter for lua_gc/LUA_GCSTEP changed to 'size_t'
'size_t' is the common type for measuring memory. 'int' can be too small for steps.
This commit is contained in:
@@ -3326,7 +3326,7 @@ Returns the remainder of dividing the current amount of bytes of
|
||||
memory in use by Lua by 1024.
|
||||
}
|
||||
|
||||
@item{@defid{LUA_GCSTEP} (int n)|
|
||||
@item{@defid{LUA_GCSTEP} (size_t n)|
|
||||
Performs a step of garbage collection.
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user