summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-03-04 16:03:47 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-03-04 16:03:47 +0100
commit5cab4411c98b128fcc26f25194151af0658ddcac (patch)
treeec815ef55fc01e912ee3677cfba9165737916c39
parent227d07ecd2d04971aee9a07722583dcde59506b6 (diff)
warning C4310: cast truncates constant value
Change-Id: Id5535ec71c47ad29283607d1d1b9f3a502e34fe1
-rw-r--r--filter/source/svg/svgfilter.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/filter/source/svg/svgfilter.cxx b/filter/source/svg/svgfilter.cxx
index e0e698a4b519..5039305131e4 100644
--- a/filter/source/svg/svgfilter.cxx
+++ b/filter/source/svg/svgfilter.cxx
@@ -270,7 +270,7 @@ bool SVGFilter::isStreamGZip(uno::Reference<io::XInputStream> xInput)
if (nBytes == 2)
{
const sal_Int8* pBuffer = aBuffer.getConstArray();
- if (pBuffer[0] == (sal_Int8)0x1F && pBuffer[1] == (sal_Int8)0x8B)
+ if (pBuffer[0] == 0x1F && static_cast<sal_uInt8>(pBuffer[1]) == 0x8B)
return true;
}
return false;