summaryrefslogtreecommitdiff
path: root/src/lj_cconv.c
diff options
context:
space:
mode:
authorMike Pall <mike>2011-11-25 19:36:35 +0100
committerMike Pall <mike>2011-11-25 19:36:35 +0100
commitc142b6c53eb8c9cb08ecc3a4db98cc1ff61b5989 (patch)
treec9f30473126af40cd41a7528ca35002898339a4a /src/lj_cconv.c
parentb3f16cb64d8eef247d3763eb90ece38810f29781 (diff)
downloadluajit-c142b6c53eb8c9cb08ecc3a4db98cc1ff61b5989.tar.gz
luajit-c142b6c53eb8c9cb08ecc3a4db98cc1ff61b5989.tar.bz2
luajit-c142b6c53eb8c9cb08ecc3a4db98cc1ff61b5989.zip
FFI: Record C function calls with bool return values.
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 }