Skip to content

Commit 1607207

Browse files
authored
Fix pointer constness warning in crc32 module on arm64 (#7225)
1 parent a80360d commit 1607207

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/crc32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ static inline int has_crc32_insn() {
6363
# pragma GCC push_options
6464
# pragma GCC target ("+nothing+crc")
6565
# endif
66-
static uint32_t crc32_aarch64(uint32_t crc, char *p, size_t nr) {
66+
static uint32_t crc32_aarch64(uint32_t crc, const char *p, size_t nr) {
6767
while (nr >= sizeof(uint64_t)) {
6868
crc = __crc32d(crc, *(uint64_t *)p);
6969
p += sizeof(uint64_t);

0 commit comments

Comments
 (0)