Mesa (master): util/crc32: don't drop the const qualifier
Grazvydas Ignotas
notaz at kemper.freedesktop.org
Sun Jan 14 17:11:47 UTC 2018
Module: Mesa
Branch: master
Commit: b7347cc3131685591f90eb94f6362a679307067e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b7347cc3131685591f90eb94f6362a679307067e
Author: Grazvydas Ignotas <notasas at gmail.com>
Date: Fri Dec 29 03:48:52 2017 +0200
util/crc32: don't drop the const qualifier
Signed-off-by: Grazvydas Ignotas <notasas at gmail.com>
Reviewed-by: Eric Engestrom <eric.engestrom at imgtec.com>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
---
src/util/crc32.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/util/crc32.c b/src/util/crc32.c
index 44d637c0f2..f2e01c61e5 100644
--- a/src/util/crc32.c
+++ b/src/util/crc32.c
@@ -111,7 +111,7 @@ util_crc32_table[256] = {
uint32_t
util_hash_crc32(const void *data, size_t size)
{
- uint8_t *p = (uint8_t *)data;
+ const uint8_t *p = data;
uint32_t crc = 0xffffffff;
while (size--)
More information about the mesa-commit
mailing list