diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-29 11:34:25 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-29 19:44:11 +0100 |
commit | 7685ff8eeac55e3ec86421e9a3bc70ea28d337a3 (patch) | |
tree | fc6f0f7ffa48320e19e3428bcd940a53e3860fff /sc | |
parent | 8512f13c42ae3fbb287a555616fe10ff04295616 (diff) |
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/48836
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/tool/addincol.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/tool/addincol.cxx b/sc/source/core/tool/addincol.cxx index 5e33c7323dd8..e2fd421f919c 100644 --- a/sc/source/core/tool/addincol.cxx +++ b/sc/source/core/tool/addincol.cxx @@ -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 ) |