From 3a31568ee301ca44ffacfb2bf1f0fd2f657a1a0f Mon Sep 17 00:00:00 2001 From: christos Date: Wed, 27 Jun 2018 15:56:30 +0000 Subject: [PATCH] use the proper types for operator new --- .../gpl3/gcc/dist/libsanitizer/lsan/lsan_interceptors.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_interceptors.cc b/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_interceptors.cc index 57581e855c44..4178704cdb1a 100644 --- a/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_interceptors.cc +++ b/external/gpl3/gcc/dist/libsanitizer/lsan/lsan_interceptors.cc @@ -149,13 +149,13 @@ INTERCEPTOR(void, cfree, void *p) ALIAS(WRAPPER_NAME(free)); return Allocate(stack, size, 1, kAlwaysClearMemory); INTERCEPTOR_ATTRIBUTE -void *operator new(uptr size) { OPERATOR_NEW_BODY; } +void *operator new(size_t size) { OPERATOR_NEW_BODY; } INTERCEPTOR_ATTRIBUTE -void *operator new[](uptr size) { OPERATOR_NEW_BODY; } +void *operator new[](size_t size) { OPERATOR_NEW_BODY; } INTERCEPTOR_ATTRIBUTE -void *operator new(uptr size, std::nothrow_t const&) { OPERATOR_NEW_BODY; } +void *operator new(size_t size, std::nothrow_t const&) { OPERATOR_NEW_BODY; } INTERCEPTOR_ATTRIBUTE -void *operator new[](uptr size, std::nothrow_t const&) { OPERATOR_NEW_BODY; } +void *operator new[](size_t size, std::nothrow_t const&) { OPERATOR_NEW_BODY; } #define OPERATOR_DELETE_BODY \ ENSURE_LSAN_INITED; \