Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 17, 2007, 12:21:27 PM (16 years ago)
Author:
scheusso
Message:

bugfix in Synchronisable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/network/Synchronisable.cc

    r565 r569  
    113113  retVal.data=mem;
    114114  // copy to location
    115   //CHANGED: REMOVED DECLARATION int n=0 FROM LOOP
    116115  int n=0;
    117116  for(i=syncList.begin(); n<datasize && i!=syncList.end(); i++){
    118     std::memcpy(retVal.data+n, (const void*)(i->size), sizeof(int));
     117    //COUT(2) << "size of variable: " << i->size << std::endl;
     118    //COUT(2) << "size of variable: " << i->size << std::endl;
     119    std::memcpy(retVal.data+n, (const void*)(&(i->size)), sizeof(int));
    119120    n+=sizeof(int);
    120121    switch(i->type){
Note: See TracChangeset for help on using the changeset viewer.