From a6a89bf049cfd2382d3e8d1d27cee0676838a751 Mon Sep 17 00:00:00 2001 From: David CARLIER Date: Fri, 9 Jul 2021 14:06:50 +0100 Subject: [PATCH] fixing crc32 module warning on arm64 and making it more consistent with the overall workflow. --- ext/standard/crc32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/standard/crc32.c b/ext/standard/crc32.c index 92dce07db54ea..221b864ba58d5 100644 --- a/ext/standard/crc32.c +++ b/ext/standard/crc32.c @@ -63,7 +63,7 @@ static inline int has_crc32_insn() { # pragma GCC push_options # pragma GCC target ("+nothing+crc") # endif -static uint32_t crc32_aarch64(uint32_t crc, char *p, size_t nr) { +static uint32_t crc32_aarch64(uint32_t crc, const char *p, size_t nr) { while (nr >= sizeof(uint64_t)) { crc = __crc32d(crc, *(uint64_t *)p); p += sizeof(uint64_t);