Added missing casts from lua_Unsigned to size_t

size_t can be smaller than lua_Usigned.
This commit is contained in:
Roberto Ierusalimschy
2025-07-01 16:07:03 -03:00
parent 59a1adf194
commit 03bf7fdd4f
2 changed files with 3 additions and 3 deletions

View File

@@ -109,7 +109,7 @@ static lua_Unsigned loadVarint (LoadState *S, lua_Unsigned limit) {
static size_t loadSize (LoadState *S) {
return loadVarint(S, MAX_SIZE);
return cast_sizet(loadVarint(S, MAX_SIZE));
}