diff options
-rw-r--r-- | src/lj_carith.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_carith.c b/src/lj_carith.c index a93ec685..bb810af8 100644 --- a/src/lj_carith.c +++ b/src/lj_carith.c | |||
@@ -240,7 +240,7 @@ static int lj_carith_meta(lua_State *L, CTState *cts, CDArith *ca, MMS mm) | |||
240 | return 1; | 240 | return 1; |
241 | } | 241 | } |
242 | for (i = 0; i < 2; i++) { | 242 | for (i = 0; i < 2; i++) { |
243 | if (ca->ct[i]) { | 243 | if (ca->ct[i] && tviscdata(L->base+i)) { |
244 | if (ctype_isenum(ca->ct[i]->info)) isenum = i; | 244 | if (ctype_isenum(ca->ct[i]->info)) isenum = i; |
245 | repr[i] = strdata(lj_ctype_repr(L, ctype_typeid(cts, ca->ct[i]), NULL)); | 245 | repr[i] = strdata(lj_ctype_repr(L, ctype_typeid(cts, ca->ct[i]), NULL)); |
246 | } else { | 246 | } else { |