[Libreoffice-commits] core.git: filter/source

Stephan Bergmann sbergman at redhat.com
Tue Mar 4 07:04:17 PST 2014


 filter/source/svg/svgfilter.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 5cab4411c98b128fcc26f25194151af0658ddcac
Author: Stephan Bergmann <sbergman at redhat.com>
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;


More information about the Libreoffice-commits mailing list