mirror of
https://github.com/luau-lang/luau.git
synced 2025-04-17 10:23:55 +01:00
spelling: overflow
This commit is contained in:
parent
f87fc7a293
commit
de67c31b7d
1 changed files with 1 additions and 1 deletions
|
@ -313,7 +313,7 @@ static size_t getnextbuffersize(lua_State* L, size_t currentsize, size_t desired
|
||||||
{
|
{
|
||||||
size_t newsize = currentsize + currentsize / 2;
|
size_t newsize = currentsize + currentsize / 2;
|
||||||
|
|
||||||
// check for size oveflow
|
// check for size overflow
|
||||||
if (SIZE_MAX - desiredsize < currentsize)
|
if (SIZE_MAX - desiredsize < currentsize)
|
||||||
luaL_error(L, "buffer too large");
|
luaL_error(L, "buffer too large");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue