Module Name:    src
Committed By:   christos
Date:           Mon Mar  4 20:04:09 UTC 2019

Modified Files:
        src/external/bsd/jemalloc/dist/include/jemalloc/internal: hash.h

Log Message:
fix const hash


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 \
    src/external/bsd/jemalloc/dist/include/jemalloc/internal/hash.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/jemalloc/dist/include/jemalloc/internal/hash.h
diff -u src/external/bsd/jemalloc/dist/include/jemalloc/internal/hash.h:1.1.1.1 src/external/bsd/jemalloc/dist/include/jemalloc/internal/hash.h:1.2
--- src/external/bsd/jemalloc/dist/include/jemalloc/internal/hash.h:1.1.1.1	Mon Mar  4 12:10:23 2019
+++ src/external/bsd/jemalloc/dist/include/jemalloc/internal/hash.h	Mon Mar  4 15:04:09 2019
@@ -27,7 +27,7 @@ hash_get_block_32(const uint32_t *p, int
 	if (unlikely((uintptr_t)p & (sizeof(uint32_t)-1)) != 0) {
 		uint32_t ret;
 
-		memcpy(&ret, (uint8_t *)(p + i), sizeof(uint32_t));
+		memcpy(&ret, (const uint8_t *)(p + i), sizeof(uint32_t));
 		return ret;
 	}
 
@@ -40,7 +40,7 @@ hash_get_block_64(const uint64_t *p, int
 	if (unlikely((uintptr_t)p & (sizeof(uint64_t)-1)) != 0) {
 		uint64_t ret;
 
-		memcpy(&ret, (uint8_t *)(p + i), sizeof(uint64_t));
+		memcpy(&ret, (const uint8_t *)(p + i), sizeof(uint64_t));
 		return ret;
 	}
 

Reply via email to