aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lapi.c b/lapi.c
index c493609a..40db1214 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1340,7 +1340,7 @@ void lua_warning (lua_State *L, const char *msg, int tocont) {
1340LUA_API void *lua_newuserdatauv (lua_State *L, size_t size, int nuvalue) { 1340LUA_API void *lua_newuserdatauv (lua_State *L, size_t size, int nuvalue) {
1341 Udata *u; 1341 Udata *u;
1342 lua_lock(L); 1342 lua_lock(L);
1343 api_check(L, 0 <= nuvalue && nuvalue < USHRT_MAX, "invalid value"); 1343 api_check(L, 0 <= nuvalue && nuvalue < SHRT_MAX, "invalid value");
1344 u = luaS_newudata(L, size, cast(unsigned short, nuvalue)); 1344 u = luaS_newudata(L, size, cast(unsigned short, nuvalue));
1345 setuvalue(L, s2v(L->top.p), u); 1345 setuvalue(L, s2v(L->top.p), u);
1346 api_incr_top(L); 1346 api_incr_top(L);