filter/source/svg/svgfilter.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 5cab4411c98b128fcc26f25194151af0658ddcac Author: Stephan Bergmann <[email protected]> Date: Tue Mar 4 16:03:47 2014 +0100 warning C4310: cast truncates constant value Change-Id: Id5535ec71c47ad29283607d1d1b9f3a502e34fe1 diff --git a/filter/source/svg/svgfilter.cxx b/filter/source/svg/svgfilter.cxx index e0e698a..5039305 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; _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
