FFI: Record C function calls with bool return values.

This commit is contained in:
Mike Pall
2011-11-25 19:36:35 +01:00
parent b3f16cb64d
commit c142b6c53e
5 changed files with 38 additions and 6 deletions

View File

@@ -391,7 +391,7 @@ int lj_cconv_tv_ct(CTState *cts, CType *s, CTypeID sid,
lua_assert(tvisnum(o));
}
} else {
uint32_t b = ((*sp) & 1);
uint32_t b = (*sp != 0);
setboolV(o, b);
setboolV(&cts->g->tmptv2, b); /* Remember for trace recorder. */
}