|
From: blackh <gra...@li...> - 2003-06-13 23:58:23
|
blackh Fri Jun 13 16:58:22 2003 EDT
Modified files:
/grapevine/cpp Allocator.h
Log:
Index: grapevine/cpp/Allocator.h
diff -u grapevine/cpp/Allocator.h:1.7 grapevine/cpp/Allocator.h:1.8
--- grapevine/cpp/Allocator.h:1.7 Fri Jun 13 11:56:13 2003
+++ grapevine/cpp/Allocator.h Fri Jun 13 16:58:22 2003
@@ -1,4 +1,4 @@
-// $Id: Allocator.h,v 1.7 2003/06/13 18:56:13 rossta Exp $
+// $Id: Allocator.h,v 1.8 2003/06/13 23:58:22 blackh Exp $
#ifndef _ALLOCATOR_H_
#define _ALLOCATOR_H_
@@ -104,7 +104,7 @@
pointer allocate(size_type n, const void * = 0)
{
- return (T*) n != 0 ? grapevineAllocateBig(n * sizeof(T)) : 0;
+ return n != 0 ? (T*) grapevineAllocateBig(n * sizeof(T)) : (T*) 0;
}
void deallocate(void* p, size_type n)
|