diff --git a/src/libCom/osi/os/default/osiWireFormat.h b/src/libCom/osi/os/default/osiWireFormat.h index edef0139a..b218f0ecc 100644 --- a/src/libCom/osi/os/default/osiWireFormat.h +++ b/src/libCom/osi/os/default/osiWireFormat.h @@ -26,13 +26,14 @@ // network byte stream. // +static const unsigned osiWireFormatEndianTest = 1u; +static const char * const pOSIWireFormatEndianTest = reinterpret_cast < const char * > ( &osiWireFormatEndianTest ); + // this endian test should vanish during optimization // and therefore be executed only at compile time inline bool osiLittleEndian () { - static const unsigned endianTest = 1u; - static const char * const pEndianTest = reinterpret_cast < const char * > ( &endianTest ); - if ( *pEndianTest ) { + if ( *pOSIWireFormatEndianTest ) { return true; } else {