diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-10-22 11:31:38 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-10-22 11:31:38 +0200 |
commit | dedff8f84ce19949da03c02bb7b41bc62d2789af (patch) | |
tree | 8ee02d741ccecbee7b901479fb26cddef0342f2e | |
parent | implement secondary button groups in buttonboxes (diff) | |
download | core-dedff8f84ce19949da03c02bb7b41bc62d2789af.tar.gz core-dedff8f84ce19949da03c02bb7b41bc62d2789af.zip |
-Werror,-Wtautological-constant-out-of-range-compare
Change-Id: I320c11d4b3d295c65dcd966f70a2de4f05926ebb
-rw-r--r-- | vcl/source/gdi/impgraph.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
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<sal_uLong>(meType) >= SYS_WINMETAFILE + && sal::static_int_cast<sal_uLong>(meType) <= SYS_MACMETAFILE ) { Graphic aSysGraphic; sal_uLong nCvtType; |