stop playing type games, and use the proper type for the placement new operator
This commit is contained in:
parent
91eb09ff7d
commit
a62fb610ef
|
@ -15,6 +15,7 @@
|
||||||
#define SANITIZER_PLACEMENT_NEW_H
|
#define SANITIZER_PLACEMENT_NEW_H
|
||||||
|
|
||||||
#include "sanitizer_internal_defs.h"
|
#include "sanitizer_internal_defs.h"
|
||||||
|
#include <cstddef>
|
||||||
|
|
||||||
namespace __sanitizer {
|
namespace __sanitizer {
|
||||||
#if (SANITIZER_WORDSIZE == 64) || defined(__APPLE__)
|
#if (SANITIZER_WORDSIZE == 64) || defined(__APPLE__)
|
||||||
|
@ -24,7 +25,7 @@ typedef u32 operator_new_ptr_type;
|
||||||
#endif
|
#endif
|
||||||
} // namespace __sanitizer
|
} // namespace __sanitizer
|
||||||
|
|
||||||
inline void *operator new(__sanitizer::operator_new_ptr_type sz, void *p) {
|
inline void *operator new(std::size_t sz, void *p) {
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue