summaryrefslogtreecommitdiffstats
path: root/win/txr.rc
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-05-19 07:20:14 -0700
committerKaz Kylheku <kaz@kylheku.com>2022-05-19 07:20:14 -0700
commitdd390a2cb27cea56a9e7654dede6fcda57e8ff09 (patch)
tree9c24447d574b5fcf1a1b73bbec850033310b9b24 /win/txr.rc
parent100453d6f78a232b6666c93c6abd9e55a531d953 (diff)
downloadtxr-dd390a2cb27cea56a9e7654dede6fcda57e8ff09.tar.gz
txr-dd390a2cb27cea56a9e7654dede6fcda57e8ff09.tar.bz2
txr-dd390a2cb27cea56a9e7654dede6fcda57e8ff09.zip
ffi: diagnose bitfields wider than type.
* ffi.c (ffi_type_compile): Show the original bitfield syntax in the invalid size diagnostics. In the case of the (bit n type) syntax, restrict the maximum bits to the width of the type, not just to 32 or 64. I realize the 8 * tft->size calculation can overflow for huge array types, but it makes no sense to use them as bitfields.
Diffstat (limited to 'win/txr.rc')
0 files changed, 0 insertions, 0 deletions