summaryrefslogtreecommitdiffstats
path: root/itypes.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-08-24 07:21:19 -0700
committerKaz Kylheku <kaz@kylheku.com>2020-08-24 07:21:19 -0700
commit365c877d8b31653e12c5284266753671d6515774 (patch)
treeb5f613b8de7dba183b9e0a3047bc1c12f4e6cd4e /itypes.h
parent401e214ebabadc2d44bdf5115b0f1cc64f6cfb93 (diff)
downloadtxr-365c877d8b31653e12c5284266753671d6515774.tar.gz
txr-365c877d8b31653e12c5284266753671d6515774.tar.bz2
txr-365c877d8b31653e12c5284266753671d6515774.zip
ffi: correct tft->nmemb under zero-bit fields.
* ffi.c (make_ffi_type_struct, make_ffi_type_union): Assign tft->memb = memb after the loop which compiles the member types, because memb is decremented in the case of the zero-width bitfield. This hasn't cause an issue because the extra members are all zero, so their slot symbol is nil, and all the relevant operations skip a nil named member.
Diffstat (limited to 'itypes.h')
0 files changed, 0 insertions, 0 deletions