summaryrefslogtreecommitdiffstats
path: root/src/util/rounding.h
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2017-11-22 22:39:51 -0800
committerMatt Turner <[email protected]>2017-11-25 12:30:46 -0800
commit532674303a92c438cb1c48d224e9dee9dece91ec (patch)
tree68b26239877c29a77261597bddeec99bfc183834 /src/util/rounding.h
parent6a353479a7577dcff7c7a31809f27b59270648fb (diff)
util: Fix SHA1 implementation on big endian
The code defines a macro blk0(i) based on the preprocessor condition BYTE_ORDER == LITTLE_ENDIAN. If true, blk0(i) is defined as a byte swap operation. Unfortunately, if the preprocessor macros used in the test are no defined, then the comparison becomes 0 == 0 and it evaluates as true. Fixes: d1efa09d342b ("util: import sha1 implementation from OpenBSD") Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/util/rounding.h')
0 files changed, 0 insertions, 0 deletions