summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-10-22 11:31:38 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-10-22 11:31:38 +0200
commitdedff8f84ce19949da03c02bb7b41bc62d2789af (patch)
tree8ee02d741ccecbee7b901479fb26cddef0342f2e /vcl
parent841b975a09b2159e824c51fc1c42b02e7f542052 (diff)
-Werror,-Wtautological-constant-out-of-range-compare
Change-Id: I320c11d4b3d295c65dcd966f70a2de4f05926ebb
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/impgraph.cxx3
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;