Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common stop pl...



details:   https://anonhg.NetBSD.org/src/rev/6525359c3a8d
branches:  trunk
changeset: 333212:6525359c3a8d
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Oct 23 17:50:08 2014 +0000

description:
stop playing type games, and use the proper type for the placement new operator

diffstat:

 external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_placement_new.h |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r bce26fb569b5 -r 6525359c3a8d external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_placement_new.h
--- a/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_placement_new.h    Thu Oct 23 15:29:06 2014 +0000
+++ b/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_placement_new.h    Thu Oct 23 17:50:08 2014 +0000
@@ -15,6 +15,7 @@
 #define SANITIZER_PLACEMENT_NEW_H
 
 #include "sanitizer_internal_defs.h"
+#include <cstddef>
 
 namespace __sanitizer {
 #if (SANITIZER_WORDSIZE == 64) || defined(__APPLE__)
@@ -24,7 +25,7 @@
 #endif
 }  // 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;
 }
 



Home | Main Index | Thread Index | Old Index