From 0b4bbf926ea18670770032a8ebd3d2e12c57ee4e Mon Sep 17 00:00:00 2001 From: Matt Wells Date: Wed, 9 Oct 2013 11:52:58 -0700 Subject: [PATCH] fix potential compiler error. --- Mem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mem.cpp b/Mem.cpp index 1a5ecc71..99ed5734 100644 --- a/Mem.cpp +++ b/Mem.cpp @@ -323,7 +323,7 @@ void * operator new [] (size_t size) throw (std::bad_alloc) { if ( g_mem.m_used + size >= g_mem.m_maxMem && g_mem.m_maxMem > 1000000 ) { log("mem: new(%i): Out of memory.", size ); - throw bad_alloc(); + throw std::bad_alloc(); //throw 1; } #ifdef _EFENCE_