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

Eike Rathke erack at redhat.com
Fri Jun 2 18:19:42 UTC 2017


 sc/source/core/tool/parclass.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit ecad6d749726dbb8c945f67fca3856cbd2ff4851
Author: Eike Rathke <erack at redhat.com>
Date:   Fri Jun 2 20:17:10 2017 +0200

    Streaming sal_uInt8 with value 0 into SAL_WARN truncates output, cast to int
    
    Change-Id: Iff7a375345226cca0f908c8389167c6f0dde5a7e

diff --git a/sc/source/core/tool/parclass.cxx b/sc/source/core/tool/parclass.cxx
index ca2dd2f43454..b92b472a8248 100644
--- a/sc/source/core/tool/parclass.cxx
+++ b/sc/source/core/tool/parclass.cxx
@@ -559,10 +559,10 @@ void ScParameterClassification::GenerateDocumentation()
             // NoPar, 1Par, ...) and override parameter count with
             // classification
             if ( nParams != aToken.GetByte() )
-                SAL_WARN("sc.core", "(parameter count differs, token Byte: " << aToken.GetByte() << " classification: " << nParams << ") ");
+                SAL_WARN("sc.core", "(parameter count differs, token Byte: " << (int)aToken.GetByte() << " classification: " << (int)nParams << ") ");
             aToken.SetByte( nParams);
             if ( nParams != aToken.GetParamCount() )
-                SAL_WARN("sc.core", "(parameter count differs, token ParamCount: " << aToken.GetParamCount() << " classification: " << nParams << ") ");
+                SAL_WARN("sc.core", "(parameter count differs, token ParamCount: " << (int)aToken.GetParamCount() << " classification: " << (int)nParams << ") ");
             for ( sal_uInt16 j=0; j < nParams; ++j )
             {
                 if ( j > 0 )


More information about the Libreoffice-commits mailing list