diff options
| author | christos <christos@NetBSD.org> | 2019-03-04 20:04:09 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2019-03-04 20:04:09 +0000 |
| commit | 234a45b87b2514064bb4fa3d718e76cd7c5fdcd7 (patch) | |
| tree | ac201208dda0fc886be6ae3ec815cdf4232394c6 /external/bsd/jemalloc/dist/include | |
| parent | 8d0522b8a8aa2e67371d2d5a7a1696ce33ee02e6 (diff) | |
fix const hash
Diffstat (limited to 'external/bsd/jemalloc/dist/include')
| -rw-r--r-- | external/bsd/jemalloc/dist/include/jemalloc/internal/hash.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/external/bsd/jemalloc/dist/include/jemalloc/internal/hash.h b/external/bsd/jemalloc/dist/include/jemalloc/internal/hash.h index dcfc992df37..1e7916a7f26 100644 --- a/external/bsd/jemalloc/dist/include/jemalloc/internal/hash.h +++ b/external/bsd/jemalloc/dist/include/jemalloc/internal/hash.h @@ -27,7 +27,7 @@ hash_get_block_32(const uint32_t *p, int i) { 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 i) { 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; } |
