minor correction
authorSameer Kumar <skumar2@uiuc.edu>
Fri, 8 Oct 2004 23:03:23 +0000 (23:03 +0000)
committerSameer Kumar <skumar2@uiuc.edu>
Fri, 8 Oct 2004 23:03:23 +0000 (23:03 +0000)
src/ck-com/MsgPacker.h

index b358bedcc20d79f53d533484333eeb9c5f02724c..749f2e882d465d1af7a6637c1e15979beec62dea 100644 (file)
@@ -9,8 +9,6 @@
 
 #define MAX_MESSAGE_SIZE 32768
 
-
-
 class short_envelope {
  public:
     UShort epIdx;
@@ -40,13 +38,11 @@ inline short_envelope::~short_envelope(){
 }
 
 inline void short_envelope::pup(PUP::er &p){
-    p.pupCmiAllocBuf((void **)&data, size);
+    p | epIdx;
+    p | size;    
     p | idx;
     
-    int *data = (int *)this;
-    //p | epIdx;
-    //p | size;    
-    p(data, 2);
+    p.pupCmiAllocBuf((void **)&data, size);
 }
 
 struct CombinedMessage{