summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoranonymous <local@localhost>2011-05-10 17:10:42 +0700
committeranonymous <local@localhost>2011-05-10 17:10:42 +0700
commit3ba9e008ae1a7c10bd04f500848c5f2ad41fbf1e (patch)
tree6e80ee8c797e287c34aa4b1234cff146a4e31629 /src
parent6f9032852fb6c55846c4b4a23f8b8976442cce51 (diff)
downloadlibcxxrt-3ba9e008ae1a7c10bd04f500848c5f2ad41fbf1e.tar.gz
libcxxrt-3ba9e008ae1a7c10bd04f500848c5f2ad41fbf1e.tar.bz2
libcxxrt-3ba9e008ae1a7c10bd04f500848c5f2ad41fbf1e.tar.xz
fixed condition for new handler in nothrow operator new
Diffstat (limited to 'src')
-rw-r--r--src/memory.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/memory.cc b/src/memory.cc
index 5e09d65..655c761 100644
--- a/src/memory.cc
+++ b/src/memory.cc
@@ -64,7 +64,7 @@ void* operator new(size_t size, const std::nothrow_t &) throw()
void *mem = malloc(size);
while (0 == mem)
{
- if (0 == new_handl)
+ if (0 != new_handl)
{
try
{