a bug fix. should leave enough room (4 bytes) for holding message size
authorGengbin Zheng <gzheng@illinois.edu>
Mon, 25 Oct 2004 16:59:35 +0000 (16:59 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Mon, 25 Oct 2004 16:59:35 +0000 (16:59 +0000)
examples/converse/pingpong/pingpong.C

index b00b18cb93b298ecea9f7089fa458edbe632e214..3c7a160ce85760a12c80f936b690cbc675ca60fe 100644 (file)
@@ -96,7 +96,7 @@ CmiStartFn mymain()
   CpvInitialize(int,msgSize);
   CpvInitialize(int,cycleNum);
   CpvInitialize(int,sizeNum);
   CpvInitialize(int,msgSize);
   CpvInitialize(int,cycleNum);
   CpvInitialize(int,sizeNum);
-  CpvAccess(sizeNum) = 1;
+  CpvAccess(sizeNum) = 2;      // leave 4 bytes for the size field
 
   CpvInitialize(int,exitHandler);
   CpvAccess(exitHandler) = CmiRegisterHandler((CmiHandler) exitHandlerFunc);
 
   CpvInitialize(int,exitHandler);
   CpvAccess(exitHandler) = CmiRegisterHandler((CmiHandler) exitHandlerFunc);