[Orxonox-commit 3151] r7844 - code/trunk/src/libraries/network/packet
landauf at orxonox.net
landauf at orxonox.net
Thu Feb 10 16:11:09 CET 2011
Author: landauf
Date: 2011-02-10 16:11:09 +0100 (Thu, 10 Feb 2011)
New Revision: 7844
Modified:
code/trunk/src/libraries/network/packet/Gamestate.cc
Log:
fixed warning. hope this works on all supported systems, because (u)intptr_t is actually C99 standard, not C++
Modified: code/trunk/src/libraries/network/packet/Gamestate.cc
===================================================================
--- code/trunk/src/libraries/network/packet/Gamestate.cc 2011-02-03 16:46:31 UTC (rev 7843)
+++ code/trunk/src/libraries/network/packet/Gamestate.cc 2011-02-10 15:11:09 UTC (rev 7844)
@@ -203,7 +203,7 @@
assert(b);
}
}
- assert(mem-data_ == GamestateHeader::getSize()+header_.getDataSize());
+ assert((uintptr_t)(mem-data_) == GamestateHeader::getSize()+header_.getDataSize());
// In debug mode, check first, whether there are no duplicate objectIDs
#ifndef NDEBUG
More information about the Orxonox-commit
mailing list