diff options
| author | Warner Losh <imp@FreeBSD.org> | 2025-08-23 10:56:08 -0600 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2025-08-23 10:56:08 -0600 |
| commit | 4d63aec3c3805e2b8d91d2622752c525be755c17 (patch) | |
| tree | 4a692e746d81ca00749975969d477c0a5a1d770c /src/lapi.c | |
| parent | 82a9c706179ee449d17fe66787bc27182143ddd5 (diff) | |
lua: Import Lua 5.4.8vendor/lua/5.4.8vendor/lua
Diffstat (limited to 'src/lapi.c')
| -rw-r--r-- | src/lapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lapi.c b/src/lapi.c index 332e97d16957..04e09cff7e0d 100644 --- a/src/lapi.c +++ b/src/lapi.c @@ -1343,7 +1343,7 @@ void lua_warning (lua_State *L, const char *msg, int tocont) { LUA_API void *lua_newuserdatauv (lua_State *L, size_t size, int nuvalue) { Udata *u; lua_lock(L); - api_check(L, 0 <= nuvalue && nuvalue < USHRT_MAX, "invalid value"); + api_check(L, 0 <= nuvalue && nuvalue < SHRT_MAX, "invalid value"); u = luaS_newudata(L, size, nuvalue); setuvalue(L, s2v(L->top.p), u); api_incr_top(L); |
