diff options
author | Mike Pall <mike> | 2011-01-17 01:21:57 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2011-01-17 01:21:57 +0100 |
commit | 83d8c86bbb7b6123c88e1cc43f48a077e04b4b1a (patch) | |
tree | c1a769b079cb386e32593615eb6615e9ce96abb8 /src/lj_cconv.c | |
parent | 66ba1e68aab23fa09fcbe84b79d4992c92440b0c (diff) | |
download | luajit-83d8c86bbb7b6123c88e1cc43f48a077e04b4b1a.tar.gz luajit-83d8c86bbb7b6123c88e1cc43f48a077e04b4b1a.tar.bz2 luajit-83d8c86bbb7b6123c88e1cc43f48a077e04b4b1a.zip |
FFI: Record conversions from bool ctype.
Diffstat (limited to 'src/lj_cconv.c')
-rw-r--r-- | src/lj_cconv.c | 4 |
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)) { |