summaryrefslogtreecommitdiffstats
path: root/mpi/mpi-types.h
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
commit94b0ad48578a9815cf4199e7d2298ed9b557fe82 (patch)
tree1bf3a99eebe43be5dd3a560bf445eb8a22fd5351 /mpi/mpi-types.h
parent656237392cecce74737e583a57c6aa41b866e50b (diff)
downloadtxr-94b0ad48578a9815cf4199e7d2298ed9b557fe82.tar.gz
txr-94b0ad48578a9815cf4199e7d2298ed9b557fe82.tar.bz2
txr-94b0ad48578a9815cf4199e7d2298ed9b557fe82.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 'mpi/mpi-types.h')
0 files changed, 0 insertions, 0 deletions