summaryrefslogtreecommitdiff
path: root/src/lj_cconv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_cconv.c')
-rw-r--r--src/lj_cconv.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lj_cconv.c b/src/lj_cconv.c
index 1f14adad..ac6374ed 100644
--- a/src/lj_cconv.c
+++ b/src/lj_cconv.c
@@ -371,7 +371,9 @@ int lj_cconv_tv_ct(CTState *cts, CType *s, CTypeID sid,
371 /* Numbers are NOT canonicalized here! Beware of uninitialized data. */ 371 /* Numbers are NOT canonicalized here! Beware of uninitialized data. */
372 lua_assert(tvisnum(o)); 372 lua_assert(tvisnum(o));
373 } else { 373 } else {
374 setboolV(o, (*sp & 1)); 374 uint32_t b = ((*sp) & 1);
375 setboolV(o, b);
376 setboolV(&cts->g->tmptv2, b); /* Remember for trace recorder. */
375 } 377 }
376 return 0; 378 return 0;
377 } else if (ctype_isrefarray(sinfo) || ctype_isstruct(sinfo)) { 379 } else if (ctype_isrefarray(sinfo) || ctype_isstruct(sinfo)) {