summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-10-09 11:43:40 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-10-09 11:43:40 -0700
commit60b367cddd49f3d387851746ad1699eeb654da49 (patch)
tree714289cde0bc6a44dca68e5d1a8a688b2e1954e9 /eval.c
parentce5589c9210009f4e1a909c29111261db1b61bd0 (diff)
downloadtxr-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 'eval.c')
0 files changed, 0 insertions, 0 deletions