diff --git a/deps/common/lang/lower_bound.h b/deps/common/lang/lower_bound.h index 28fb588a5..3aadbf368 100644 --- a/deps/common/lang/lower_bound.h +++ b/deps/common/lang/lower_bound.h @@ -118,7 +118,7 @@ class BinaryIterator BinaryIterator operator--(int) { BinaryIterator tmp(*this); - this->operator+=(-1); + *this += -1; return tmp; } diff --git a/deps/common/mm/debug_new.h b/deps/common/mm/debug_new.h index d560bc7d2..01826d979 100644 --- a/deps/common/mm/debug_new.h +++ b/deps/common/mm/debug_new.h @@ -39,6 +39,7 @@ void operator delete[](void *); // MSVC 6 requires this declaration #ifdef DEBUG_NEW_EMULATE_MALLOC #define malloc(s) ((void *)(debug_new char[s])) + #define free(p) delete[] (char *)(p) #endif // DEBUG_NEW_EMULATE_MALLOC