Browse Source

WTF? sizeof(int) != 8 and sizeof(long long) != 16.

F'ed up in 57d6ded237.
pull/279/head
Vladimír Vondruš 14 years ago
parent
commit
6c111182e1
  1. 4
      src/Math/MathTypeTraits.h

4
src/Math/MathTypeTraits.h

@ -113,12 +113,12 @@ template<class T> struct MathTypeTraitsFloatingPoint {
template<size_t> struct MathTypeTraitsLong {};
template<> struct MathTypeTraitsLong<8> {
template<> struct MathTypeTraitsLong<sizeof(int)> {
typedef unsigned int UnsignedType;
typedef int Type;
};
template<> struct MathTypeTraitsLong<16> {
template<> struct MathTypeTraitsLong<sizeof(long long)> {
typedef unsigned long long UnsignedType;
typedef long long Type;
};

Loading…
Cancel
Save