diff options
author | Mike Pall <mike> | 2012-07-17 22:20:03 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2012-07-17 22:22:07 +0200 |
commit | 4d9c29a78cde2596ea3286744d93d29dd2a6d9ca (patch) | |
tree | 62af9fd2c6765a06005f8fa8ed00a1b491c0a356 /src/lj_cconv.c | |
parent | 2139c6791f4b802560ce62dc688293786803a9ca (diff) | |
download | luajit-4d9c29a78cde2596ea3286744d93d29dd2a6d9ca.tar.gz luajit-4d9c29a78cde2596ea3286744d93d29dd2a6d9ca.tar.bz2 luajit-4d9c29a78cde2596ea3286744d93d29dd2a6d9ca.zip |
FFI: Box all accessed or returned enums.
Diffstat (limited to 'src/lj_cconv.c')
-rw-r--r-- | src/lj_cconv.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/lj_cconv.c b/src/lj_cconv.c index 9964f8a4..f33ed56d 100644 --- a/src/lj_cconv.c +++ b/src/lj_cconv.c | |||
@@ -374,7 +374,6 @@ int lj_cconv_tv_ct(CTState *cts, CType *s, CTypeID sid, | |||
374 | TValue *o, uint8_t *sp) | 374 | TValue *o, uint8_t *sp) |
375 | { | 375 | { |
376 | CTInfo sinfo = s->info; | 376 | CTInfo sinfo = s->info; |
377 | lua_assert(!ctype_isenum(sinfo)); | ||
378 | if (ctype_isnum(sinfo)) { | 377 | if (ctype_isnum(sinfo)) { |
379 | if (!ctype_isbool(sinfo)) { | 378 | if (!ctype_isbool(sinfo)) { |
380 | if (ctype_isinteger(sinfo) && s->size > 4) goto copyval; | 379 | if (ctype_isinteger(sinfo) && s->size > 4) goto copyval; |