aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lapi.c2
-rw-r--r--lparser.c2
2 files changed, 2 insertions, 2 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);
diff --git a/lparser.c b/lparser.c
index b193b672..3db7df4c 100644
--- a/lparser.c
+++ b/lparser.c
@@ -199,7 +199,7 @@ static int new_localvarkind (LexState *ls, TString *name, lu_byte kind) {
199 luaY_checklimit(fs, dyd->actvar.n + 1 - fs->firstlocal, 199 luaY_checklimit(fs, dyd->actvar.n + 1 - fs->firstlocal,
200 MAXVARS, "local variables"); 200 MAXVARS, "local variables");
201 luaM_growvector(L, dyd->actvar.arr, dyd->actvar.n + 1, 201 luaM_growvector(L, dyd->actvar.arr, dyd->actvar.n + 1,
202 dyd->actvar.size, Vardesc, USHRT_MAX, "local variables"); 202 dyd->actvar.size, Vardesc, SHRT_MAX, "local variables");
203 var = &dyd->actvar.arr[dyd->actvar.n++]; 203 var = &dyd->actvar.arr[dyd->actvar.n++];
204 var->vd.kind = kind; /* default */ 204 var->vd.kind = kind; /* default */
205 var->vd.name = name; 205 var->vd.name = name;