summaryrefslogtreecommitdiffstats
path: root/filter.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-01-24 07:14:19 -0800
committerKaz Kylheku <kaz@kylheku.com>2019-01-24 07:14:19 -0800
commit8e785a1f47e49a411abadc8b690b175ff0e231e6 (patch)
tree1bf3a99eebe43be5dd3a560bf445eb8a22fd5351 /filter.c
parent2bc30dec3b2c43145afdbb199341fc023733189d (diff)
downloadtxr-8e785a1f47e49a411abadc8b690b175ff0e231e6.tar.gz
txr-8e785a1f47e49a411abadc8b690b175ff0e231e6.tar.bz2
txr-8e785a1f47e49a411abadc8b690b175ff0e231e6.zip
ffi: fix range checks in be/le i64 put ops.
* ffi.c (ffi_be_i64_put, ffi_le_i64_put): Fix incorrect range check, causing most negative two values to be rejected. The aim here is to accept the #x-80..00 most negative two's complement value. We can't express that directly using the C expression -0x8000000000000000 because it's not a simple constant; it's the unary minus applied an unsigned number.
Diffstat (limited to 'filter.c')
0 files changed, 0 insertions, 0 deletions