From dedff8f84ce19949da03c02bb7b41bc62d2789af Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 22 Oct 2012 11:31:38 +0200 Subject: -Werror,-Wtautological-constant-out-of-range-compare Change-Id: I320c11d4b3d295c65dcd966f70a2de4f05926ebb --- vcl/source/gdi/impgraph.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'vcl') diff --git a/vcl/source/gdi/impgraph.cxx b/vcl/source/gdi/impgraph.cxx index 333fb3f0ef32..13e651ad3fed 100644 --- a/vcl/source/gdi/impgraph.cxx +++ b/vcl/source/gdi/impgraph.cxx @@ -1127,7 +1127,8 @@ sal_Bool ImpGraphic::ImplReadEmbedded( SvStream& rIStm, sal_Bool bSwap ) rIStm >> *this; bRet = ( rIStm.GetError() == 0UL ); } - else if( meType >= SYS_WINMETAFILE && meType <= SYS_MACMETAFILE ) + else if( sal::static_int_cast(meType) >= SYS_WINMETAFILE + && sal::static_int_cast(meType) <= SYS_MACMETAFILE ) { Graphic aSysGraphic; sal_uLong nCvtType; -- cgit