use sizeof to determine no chars in type unsigned

This commit is contained in:
Jeff Hill
2002-09-10 19:07:40 +00:00
parent 8870cf48b6
commit cb2d75392e

View File

@@ -44,7 +44,7 @@ public:
bool bigEndian () const { return ! littleEndian(); }
private:
unsigned uint;
unsigned char uchar[4];
unsigned char uchar[sizeof(unsigned)];
};
static const endianTest endianTester;