0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

explicit short sizeof assumption

This commit is contained in:
Alberto Lerner 2010-12-15 13:07:09 -05:00
parent 4d351c23f7
commit 455f841fa7

View File

@ -35,6 +35,7 @@
#define assert MONGO_assert
// make sure our assumptions are valid
BOOST_STATIC_ASSERT( sizeof(short) == 2 );
BOOST_STATIC_ASSERT( sizeof(int) == 4 );
BOOST_STATIC_ASSERT( sizeof(long long) == 8 );
BOOST_STATIC_ASSERT( sizeof(double) == 8 );