use sizeof to determine no chars in type unsigned
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user