fixed a compiler error with VC++ 10.0
authorGengbin Zheng <gzheng@illinois.edu>
Tue, 26 Oct 2010 03:59:43 +0000 (22:59 -0500)
committerGengbin Zheng <gzheng@illinois.edu>
Tue, 26 Oct 2010 03:59:43 +0000 (22:59 -0500)
src/langs/bluegene/shared_alloc.C

index 6683e70bb074870dcc7ab786f728aa54777ce3ef..53262215b09e5ab1a8a78d4978584fca5436f88e 100644 (file)
@@ -12,7 +12,7 @@ void *shalloc(size_t s, int i)
 {
   // Make space to record at least i allocations
   if(allocs.size() <= i)
-    allocs.resize(i+1, Alloc(0,0));
+    allocs.resize(i+1, Alloc((void*)0,0));
 
   // Ensure allocation i is initialized
   if(allocs[i].first == 0)