fixed compilation error
authorFilippo Gioachin <gioachin@illinois.edu>
Mon, 18 Jul 2005 17:07:20 +0000 (17:07 +0000)
committerFilippo Gioachin <gioachin@illinois.edu>
Mon, 18 Jul 2005 17:07:20 +0000 (17:07 +0000)
src/ck-com/ComlibSectionInfo.C

index 87a3c2a4a546afc08f72547787ab9bc2d0be8451..3976acdb5468d2b68772fbdd1cc3b88cc3f5e77f 100644 (file)
@@ -41,7 +41,7 @@ ComlibMulticastMsg * ComlibSectionInfo::getNewMulticastMessage
     // fill in the three pointers of the ComlibMulticastMsg
     memcpy(msg->indicesCount, indicesCount, sizes[0] * sizeof(ComlibMulticastIndexCount));
     //memcpy(msg->indices, cmsg->sec_id->_elems, sizes[1] * sizeof(CkArrayIndexMax));
-    CkArrayIndexMax *indicesPe[nRemotePes];
+    CkArrayIndexMax **indicesPe = (CkArrayIndexMax**)alloca(nRemotePes * sizeof(CkArrayIndexMax*));
     indicesPe[0] = msg->indices;
     for (int i=1; i<nRemotePes; ++i) indicesPe[i] = indicesPe[i-1] + indicesCount[i-1].count;
     for (int i=0; i<cmsg->sec_id->_nElems; ++i) {