Changeset 245 for code/branches
- Timestamp:
- Nov 25, 2007, 5:22:22 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/network/Synchronisable.cc
r238 r245 48 48 for(i=syncList.begin(); n<totalsize && i!=syncList.end(); i++){ 49 49 //CHANGED: i->size TO (const void*)(&(i->size)) memcpy WANTS A CONST VOID* SO CONVERT INT TO CONST VOID* 50 std::memcpy(retVal.data+n, (const void*)( &(i->size)), sizeof(int));50 std::memcpy(retVal.data+n, (const void*)(i->size), sizeof(int)); 51 51 n+=sizeof(int); 52 52 //CHANGED: i->var TO (const void*)(&(i->var)) SINCE var IS A POINTER, NO & BEFORE i
Note: See TracChangeset
for help on using the changeset viewer.