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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_cconv.c b/src/lj_cconv.c
index d73984f4..9d478355 100644
--- a/src/lj_cconv.c
+++ b/src/lj_cconv.c
@@ -391,7 +391,7 @@ int lj_cconv_tv_ct(CTState *cts, CType *s, CTypeID sid,
391 lua_assert(tvisnum(o)); 391 lua_assert(tvisnum(o));
392 } 392 }
393 } else { 393 } else {
394 uint32_t b = ((*sp) & 1); 394 uint32_t b = (*sp != 0);
395 setboolV(o, b); 395 setboolV(o, b);
396 setboolV(&cts->g->tmptv2, b); /* Remember for trace recorder. */ 396 setboolV(&cts->g->tmptv2, b); /* Remember for trace recorder. */
397 } 397 }