From d8a5dc356383a69c28dcc3889e8b2bed56291707 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Thu, 31 May 2001 20:19:34 +0000 Subject: [PATCH] simplified --- src/libCom/osi/os/default/osiWireFormat.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libCom/osi/os/default/osiWireFormat.h b/src/libCom/osi/os/default/osiWireFormat.h index 0b72933a2..99d5cb1b2 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 ( 1u ) {} - bool littleEndian () const { return uchar[0] & 1u; } + endianTest () : uint ( true ) {} + bool littleEndian () const { return uchar[0] } bool bigEndian () const { return ! littleEndian(); } private: unsigned uint;