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 18708d66..afe7e682 100644 --- a/src/lj_carith.c +++ b/src/lj_carith.c | |||
@@ -238,7 +238,7 @@ static int lj_carith_meta(lua_State *L, CTState *cts, CDArith *ca, MMS mm) | |||
238 | return 1; | 238 | return 1; |
239 | } | 239 | } |
240 | for (i = 0; i < 2; i++) { | 240 | for (i = 0; i < 2; i++) { |
241 | if (ca->ct[i]) { | 241 | if (ca->ct[i] && tviscdata(L->base+i)) { |
242 | if (ctype_isenum(ca->ct[i]->info)) isenum = i; | 242 | if (ctype_isenum(ca->ct[i]->info)) isenum = i; |
243 | repr[i] = strdata(lj_ctype_repr(L, ctype_typeid(cts, ca->ct[i]), NULL)); | 243 | repr[i] = strdata(lj_ctype_repr(L, ctype_typeid(cts, ca->ct[i]), NULL)); |
244 | } else { | 244 | } else { |