summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-06-02 20:17:10 +0200
committerEike Rathke <erack@redhat.com>2017-06-02 20:18:59 +0200
commitecad6d749726dbb8c945f67fca3856cbd2ff4851 (patch)
tree79a1f9dd8488fc39b762344bd4cdb863bca42d2a /sc
parent61b5cb4cb3d8fe1f93b760bf753d58fa92bdc29e (diff)
Streaming sal_uInt8 with value 0 into SAL_WARN truncates output, cast to int
Change-Id: Iff7a375345226cca0f908c8389167c6f0dde5a7e
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/tool/parclass.cxx4
1 files changed, 2 insertions, 2 deletions
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 )