use sizeof to determine no chars in type unsigned
This commit is contained in:
1 parent
8870cf48b6
commit
cb2d75392e
1 file changed
+1
-1
@@ -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