diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2022-05-19 07:20:14 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2022-05-19 07:20:14 -0700 |
commit | dd390a2cb27cea56a9e7654dede6fcda57e8ff09 (patch) | |
tree | 9c24447d574b5fcf1a1b73bbec850033310b9b24 /mpi/README | |
parent | 100453d6f78a232b6666c93c6abd9e55a531d953 (diff) | |
download | txr-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 'mpi/README')
0 files changed, 0 insertions, 0 deletions