Kaydet (Commit) ecad6d74 authored tarafından Eike Rathke's avatar Eike Rathke

Streaming sal_uInt8 with value 0 into SAL_WARN truncates output, cast to int

Change-Id: Iff7a375345226cca0f908c8389167c6f0dde5a7e
üst 61b5cb4c
......@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment