summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-22 16:34:49 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-23 07:57:29 +0100
commitce84922f7b08ad431a6cca1cac32df0ba78f7915 (patch)
tree8f1bf010e46db374a3d5d254c8b6519d4e61f4b6 /svl
parent280cc198296b6728d990ee40f92b7f842c4959b1 (diff)
Assume this wants to SAL_WARN for the sal_uInt16 range, actually
Change-Id: Icdda5cbc39fc2878c869ec01349135fd56a15363 Reviewed-on: https://gerrit.libreoffice.org/48349 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'svl')
-rw-r--r--svl/source/items/cintitem.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svl/source/items/cintitem.cxx b/svl/source/items/cintitem.cxx
index f38fa524175f..7254d0be75d6 100644
--- a/svl/source/items/cintitem.cxx
+++ b/svl/source/items/cintitem.cxx
@@ -122,7 +122,7 @@ bool CntUInt16Item::PutValue(const css::uno::Any& rVal, sal_uInt8)
sal_Int32 nValue = 0;
if (rVal >>= nValue)
{
- SAL_WARN_IF(nValue > USHRT_MAX, "svl.items", "Overflow in UInt16 value!");
+ SAL_WARN_IF(nValue < 0 || nValue > SAL_MAX_UINT16, "svl.items", "Overflow in UInt16 value!");
m_nValue = static_cast<sal_uInt16>(nValue);
return true;
}