From d0438b37a1ee843aea4eff1e468ea17798f4217d Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Thu, 31 May 2001 20:42:03 +0000 Subject: [PATCH] fixed win32 warning --- 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 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;