# HG changeset patch # User Nina Engelhardt # Date 1317138484 -7200 # Node ID dd8f979453553791304b675418b4046a2af1268e # Parent 531eb1f6d024a6db7a716733695ec32e4752e418 fix hash for 64 bit diff -r 531eb1f6d024 -r dd8f97945355 SSR_Request_Handlers.c --- a/SSR_Request_Handlers.c Thu Sep 22 12:17:28 2011 +0200 +++ b/SSR_Request_Handlers.c Tue Sep 27 17:48:04 2011 +0200 @@ -99,7 +99,7 @@ // list when multiple have the same key. //TODO: use a faster hash function -- see notes in intelligence gather - key[0] = (int)receivePr; + key[0] = (int)receivePr->procrID; key[1] = (int)(semReq->msgType); //key[2] acts as the 0 that terminates the string @@ -161,8 +161,8 @@ receivePr = semReq->receivePr; //For "send", know both send & recv procrs sendPr = semReq->sendPr; - key[0] = (int)receivePr; - key[1] = (int)sendPr; + key[0] = (int)receivePr->procrID; + key[1] = (int)sendPr->procrID; //key[2] acts at the 0 that terminates the string entry = giveEntryElseInsertReqst( (char *)key, semReq, commHashTbl); @@ -246,7 +246,7 @@ receivePr = semReq->receivePr; - key[0] = (int)receivePr; + key[0] = (int)receivePr->procrID; key[1] = (int)(semReq->msgType); //key[2] acts as the 0 that terminates the string @@ -295,8 +295,8 @@ receivePr = semReq->receivePr; sendPr = semReq->sendPr; //for receive from-to, know send procr - key[0] = (int)receivePr; - key[1] = (int)sendPr; + key[0] = (int)receivePr->procrID; + key[1] = (int)sendPr->procrID; //key[2] acts at the 0 that terminates the string entry = giveEntryElseInsertReqst( (char *)key, semReq, commHashTbl);