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:
Roberto Ierusalimschy committed 2024-09-10 17:05:39 -03:00
1 parent a04e0ffdb9
commit 4901853c11
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -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.
}