FFI: Fix for cdata vs. non-cdata arithmetic and comparisons.

Thanks to Roman Tsisyk.
This commit is contained in:
Mike Pall 2014-09-08 23:28:02 +02:00
parent 66515a054c
commit 247ead6718

View File

@ -1434,6 +1434,7 @@ void LJ_FASTCALL recff_cdata_arith(jit_State *J, RecordFFData *rd)
}
} else if (!tref_isnum(tr)) {
tr = 0;
ct = ctype_get(cts, CTID_P_VOID);
}
ok:
s[i] = ct;