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

Stephan Bergmann sbergman at redhat.com
Thu Aug 21 05:34:51 PDT 2014


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

New commits:
commit 1f65b5539872890197718364455c5c0aca083f12
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Aug 21 14:34:24 2014 +0200

    Avoid undefined left shift of negative values
    
    Change-Id: I428b2401f59930e115f4b0d205f6c1db779b16f9

diff --git a/filter/source/msfilter/escherex.cxx b/filter/source/msfilter/escherex.cxx
index 299e851..8394eb6 100644
--- a/filter/source/msfilter/escherex.cxx
+++ b/filter/source/msfilter/escherex.cxx
@@ -2623,7 +2623,7 @@ void ConvertEnhancedCustomShapeEquation( SdrObjCustomShape* pCustoShape,
             std::vector< EnhancedCustomShapeEquation >::iterator aEnd ( rEquations.end() );
             while( aIter != aEnd )
             {
-                sal_Int32 nMask = 0x20000000;
+                sal_uInt32 nMask = 0x20000000;
                 for( i = 0; i < 3; i++ )
                 {
                     if ( aIter->nOperation & nMask )


More information about the Libreoffice-commits mailing list