Skip to content

Commit fa78afa

Browse files
committed
Fixed bug #75303 sha3 hangs on bigendian
1 parent 4372293 commit fa78afa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/hash/hash_sha3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ static inline unsigned char idx(unsigned char x, unsigned char y) {
3939

4040
#ifdef WORDS_BIGENDIAN
4141
static inline uint64_t load64(const unsigned char* x) {
42-
char i;
42+
signed char i;
4343
uint64_t ret = 0;
4444
for (i = 7; i >= 0; --i) {
4545
ret <<= 8;

0 commit comments

Comments
 (0)