summaryrefslogtreecommitdiff
path: root/src/lj_carith.c
diff options
context:
space:
mode:
authorMike Pall <mike>2014-04-08 12:12:27 +0200
committerMike Pall <mike>2014-04-08 12:12:27 +0200
commit347b49ec7d3d8f1a2c771c15ad080960af842f56 (patch)
tree05c3ba1256c79086726ad7e45e948e9c43aa3382 /src/lj_carith.c
parentd3e3700180afe1bec58438a2c1a490ea0527d74e (diff)
parent4ed3ee1f046618c5251baae3013f125b4cc7ca9c (diff)
downloadluajit-347b49ec7d3d8f1a2c771c15ad080960af842f56.tar.gz
luajit-347b49ec7d3d8f1a2c771c15ad080960af842f56.tar.bz2
luajit-347b49ec7d3d8f1a2c771c15ad080960af842f56.zip
Merge branch 'master' into v2.1
Diffstat (limited to 'src/lj_carith.c')
-rw-r--r--src/lj_carith.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lj_carith.c b/src/lj_carith.c
index 1b1786a6..53257e18 100644
--- a/src/lj_carith.c
+++ b/src/lj_carith.c
@@ -64,7 +64,7 @@ static int carith_checkarg(lua_State *L, CTState *cts, CDArith *ca)
64 TValue *o2 = i == 0 ? o+1 : o-1; 64 TValue *o2 = i == 0 ? o+1 : o-1;
65 CType *ct = ctype_raw(cts, cdataV(o2)->ctypeid); 65 CType *ct = ctype_raw(cts, cdataV(o2)->ctypeid);
66 ca->ct[i] = NULL; 66 ca->ct[i] = NULL;
67 ca->p[i] = NULL; 67 ca->p[i] = (uint8_t *)strVdata(o);
68 ok = 0; 68 ok = 0;
69 if (ctype_isenum(ct->info)) { 69 if (ctype_isenum(ct->info)) {
70 CTSize ofs; 70 CTSize ofs;
@@ -75,7 +75,7 @@ static int carith_checkarg(lua_State *L, CTState *cts, CDArith *ca)
75 ok = 1; 75 ok = 1;
76 } else { 76 } else {
77 ca->ct[1-i] = ct; /* Use enum to improve error message. */ 77 ca->ct[1-i] = ct; /* Use enum to improve error message. */
78 ca->p[1-i] = (void *)(intptr_t)1; /* To make it unequal. */ 78 ca->p[1-i] = NULL;
79 break; 79 break;
80 } 80 }
81 } 81 }