diff --git a/src/lj_carith.c b/src/lj_carith.c index 36d7abb1..9a451b24 100644 --- a/src/lj_carith.c +++ b/src/lj_carith.c @@ -79,7 +79,7 @@ static int carith_checkarg(lua_State *L, CTState *cts, CDArith *ca) } } else { ca->ct[i] = NULL; - ca->p[i] = NULL; + ca->p[i] = (void *)(intptr_t)1; /* To make it unequal. */ ok = 0; } }