Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/jemalloc/dist/include/jemalloc/internal fix con...
details: https://anonhg.NetBSD.org/src/rev/e872605ce061
branches: trunk
changeset: 449378:e872605ce061
user: christos <christos%NetBSD.org@localhost>
date: Mon Mar 04 20:04:09 2019 +0000
description:
fix const hash
diffstat:
external/bsd/jemalloc/dist/include/jemalloc/internal/hash.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r a52f3b31838a -r e872605ce061 external/bsd/jemalloc/dist/include/jemalloc/internal/hash.h
--- a/external/bsd/jemalloc/dist/include/jemalloc/internal/hash.h Mon Mar 04 20:03:53 2019 +0000
+++ b/external/bsd/jemalloc/dist/include/jemalloc/internal/hash.h Mon Mar 04 20:04:09 2019 +0000
@@ -27,7 +27,7 @@
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 @@
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;
}
Home |
Main Index |
Thread Index |
Old Index