Fixed compile errors
authorClark Barrett <barrett@cs.nyu.edu>
Tue, 2 Feb 2010 02:10:28 +0000 (02:10 +0000)
committerClark Barrett <barrett@cs.nyu.edu>
Tue, 2 Feb 2010 02:10:28 +0000 (02:10 +0000)
src/context/context.cpp
src/context/context.h

index 8083f2cc7c0d786e868535a71f025bc23c3178b1..476f6d04bfc6d4c6236479adc93bd3aec0d16b10 100644 (file)
@@ -15,6 +15,7 @@
 
 #include "context/context.h"
 #include "util/Assert.h"
+#include <cstdlib>
 
 
 namespace CVC4 {
index fd145cbff6c25a60e85da88619af0b4ae560776d..c59955f8dd7c21641125fbb6fbda58bf6314a71a 100644 (file)
@@ -381,7 +381,7 @@ public:
    * new operator.  To free this memory, instead of "delete p", use
    * "p->deleteSelf()".
    */
-  static void* operator new(size_t size, bool) { ::operator new(size); }
+  static void* operator new(size_t size, bool) { return ::operator new(size); }
 
   /**
    * Corresponding placement delete.  Note that this is provided for the