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_ccall.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_ccall.c')
-rw-r--r-- | src/lj_ccall.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/lj_ccall.c b/src/lj_ccall.c index 22171778..c3eb25f6 100644 --- a/src/lj_ccall.c +++ b/src/lj_ccall.c | |||
@@ -684,7 +684,6 @@ static int ccall_get_results(lua_State *L, CTState *cts, CType *ct, | |||
684 | #endif | 684 | #endif |
685 | /* No reference types end up here, so there's no need for the CTypeID. */ | 685 | /* No reference types end up here, so there's no need for the CTypeID. */ |
686 | lua_assert(!(ctype_isrefarray(ctr->info) || ctype_isstruct(ctr->info))); | 686 | lua_assert(!(ctype_isrefarray(ctr->info) || ctype_isstruct(ctr->info))); |
687 | if (ctype_isenum(ctr->info)) ctr = ctype_child(cts, ctr); | ||
688 | return lj_cconv_tv_ct(cts, ctr, 0, L->top-1, sp); | 687 | return lj_cconv_tv_ct(cts, ctr, 0, L->top-1, sp); |
689 | } | 688 | } |
690 | 689 | ||