diff --git a/src/libCom/osi/os/default/osiWireFormat.h b/src/libCom/osi/os/default/osiWireFormat.h index 713ef66e4..cd6d5849e 100644 --- a/src/libCom/osi/os/default/osiWireFormat.h +++ b/src/libCom/osi/os/default/osiWireFormat.h @@ -30,8 +30,8 @@ // and therefore be executed only at compile time union endianTest { public: - endianTest () : uint ( true ) {} - bool littleEndian () const { return uchar[0]; } + endianTest () : uint ( 1 ) {} + bool littleEndian () const { return ( uchar[0] == 1 ); } bool bigEndian () const { return ! littleEndian(); } private: unsigned uint;