diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-05-25 06:37:50 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-05-25 06:37:50 -0700 |
commit | 8e65f3539cca89375e73eb6aad9959dbe4485583 (patch) | |
tree | 806a53be03896e414b7dc0e8e18f8457384f6248 /ffi.c | |
parent | e3590f297686097df40a3d6c83766130f948c3c6 (diff) | |
download | txr-8e65f3539cca89375e73eb6aad9959dbe4485583.tar.gz txr-8e65f3539cca89375e73eb6aad9959dbe4485583.tar.bz2 txr-8e65f3539cca89375e73eb6aad9959dbe4485583.zip |
ffi: don't compile struct member type twice.
* ffi.c (ffi_struct_compile): Eliminate redundant call
to ffi_type_compile, replacing it with the compiled type
we already have.
Diffstat (limited to 'ffi.c')
-rw-r--r-- | ffi.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1636,7 +1636,7 @@ static val ffi_struct_compile(val membs, val *ptypes, val self) if (ctft->size == 0) uw_throwf(error_s, lit("~a: incomplete type ~s cannot be struct member"), self, type, nao); - pttail = list_collect(pttail, ffi_type_compile(type)); + pttail = list_collect(pttail, comp_type); pstail = list_collect(pstail, name); } |