Skip to content

Commit 62fcb11

Browse files
committed
Merge branch 'PHP-7.4'
* PHP-7.4: Fix aarch64 crc32 implementation
2 parents 13e0c5f + 5f13eff commit 62fcb11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/standard/crc32.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,13 @@ PHP_NAMED_FUNCTION(php_if_crc32)
8686
#if defined(__aarch64__)
8787
if (has_crc32_insn()) {
8888
crc = crc32_aarch64(crc, p, nr);
89-
RETVAL_LONG(crc^0xFFFFFFFF);
89+
RETURN_LONG(crc^0xFFFFFFFF);
9090
}
9191
#endif
9292

9393
for (; nr--; ++p) {
9494
crc = ((crc >> 8) & 0x00FFFFFF) ^ crc32tab[(crc ^ (*p)) & 0xFF ];
9595
}
96-
RETVAL_LONG(crc^0xFFFFFFFF);
96+
RETURN_LONG(crc^0xFFFFFFFF);
9797
}
9898
/* }}} */

0 commit comments

Comments
 (0)