diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-10-09 11:43:40 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-10-09 11:43:40 -0700 |
commit | 60b367cddd49f3d387851746ad1699eeb654da49 (patch) | |
tree | 714289cde0bc6a44dca68e5d1a8a688b2e1954e9 /tags.tl | |
parent | ce5589c9210009f4e1a909c29111261db1b61bd0 (diff) | |
download | txr-60b367cddd49f3d387851746ad1699eeb654da49.tar.gz txr-60b367cddd49f3d387851746ad1699eeb654da49.tar.bz2 txr-60b367cddd49f3d387851746ad1699eeb654da49.zip |
ffi: fix broken range checks in enumed type.
Reported by Paul A. Patience.
* ffi.c (make_ffi_type_enum): Do not use the cnum native type
for doing the member value calculations. Work with Lisp
numbers, and verify their range by passing them into the put
function of the underlying integer type. Duplicated code is
merged, too.
* tests/017/ffi-misc.tl: New tests. Two 64 bit ones fail
due to conversion bugs.
Diffstat (limited to 'tags.tl')
0 files changed, 0 insertions, 0 deletions