comlib: Use CmiMsgHeaderExt instead of CmiMsgHeaderBasic to get the strategy ID
[charm.git] / src / ck-com / MulticastStrategy.C
index 6ec70a0a9808dbc048fe58a8f37c0ed2aac4cf3f..2826fb02db0f6516c53d45b0854373d83456c165 100644 (file)
@@ -245,7 +245,7 @@ void MulticastStrategy::localMulticast(envelope *env,
       CkMcastBaseMsg *errorMsg = sinfo.getNewDeliveryErrorMsg(base);
       envelope *errorEnv = UsrToEnv(errorMsg);
       CmiSetHandler(errorEnv, CkpvAccess(comlib_handler));
-      ((CmiMsgHeaderBasic *) errorEnv)->stratid = getInstance();
+      ((CmiMsgHeaderExt *) errorEnv)->stratid = getInstance();
       CmiSyncSendAndFree(env->getSrcPe(), errorEnv->getTotalsize(), (char*)errorEnv);
     }
   }
@@ -274,7 +274,7 @@ void MulticastStrategy::remoteMulticast(envelope *env,
   //CmiSetHandler(env, handlerId);
   CmiSetHandler(env, CkpvAccess(comlib_handler));
 
-  ((CmiMsgHeaderBasic *) env)->stratid = getInstance();
+  ((CmiMsgHeaderExt *) env)->stratid = getInstance();
 
   //Collect Multicast Statistics
   RECORD_SENDM_STATS(getInstance(), env->getTotalsize(), pelist, npes);