From cb2d75392eae6eee9cad1767728594fee0add95d Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Tue, 10 Sep 2002 19:07:40 +0000 Subject: [PATCH] use sizeof to determine no chars in type unsigned --- src/libCom/osi/os/default/osiWireFormat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libCom/osi/os/default/osiWireFormat.h b/src/libCom/osi/os/default/osiWireFormat.h index 3ea8cf72d..7329df116 100644 --- a/src/libCom/osi/os/default/osiWireFormat.h +++ b/src/libCom/osi/os/default/osiWireFormat.h @@ -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;