Kaydet (Commit) 7685ff8e authored tarafından Stephan Bergmann's avatar Stephan Bergmann

USHRT_MAX -> SAL_MAX_UINT16

nArgCount apparently must fit into sal_uInt16 for the cast further down when
assigning it to sal_uInt16 ScFuncDesc::nArgCount

Change-Id: Ie82f864d519589553505015dc577b1e3372293b2
Reviewed-on: https://gerrit.libreoffice.org/48836Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 8512f13c
......@@ -1224,7 +1224,7 @@ bool ScUnoAddInCollection::FillFunctionDescFromData( const ScUnoAddInFuncData& r
bool bIncomplete = !rFuncData.GetFunction().is(); //TODO: extra flag?
long nArgCount = rFuncData.GetArgumentCount();
if ( nArgCount > USHRT_MAX )
if ( nArgCount > SAL_MAX_UINT16 )
return false;
if ( bIncomplete )
......
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