diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-02-16 09:56:20 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-02-16 10:09:34 +0000 |
commit | 049cf885c6e6c12ac9fa20bcb4ca1472de5b9115 (patch) | |
tree | 046676fde9e39f61d3d8de8db1f76343d8f4b3cf /sal | |
parent | 7e06965243d1e3a98519c659b7ad580d1ff46ab5 (diff) |
coverity#1352448 Use of untrusted scalar value
and
coverity#1352449 Use of untrusted scalar value
I suspect this will fix the warning, given that "Casting narrower unsigned
pBuffer[i] to wider signed type short effectively tests its lower bound", so
if we pass it though as-is we probably quieten these
Change-Id: I2ece08f7301f5d548d905d221e5a6af0da51a2bb
Diffstat (limited to 'sal')
-rw-r--r-- | sal/qa/rtl/random/rtl_random.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sal/qa/rtl/random/rtl_random.cxx b/sal/qa/rtl/random/rtl_random.cxx index e3a70e45291e..c91bb54ee9f6 100644 --- a/sal/qa/rtl/random/rtl_random.cxx +++ b/sal/qa/rtl/random/rtl_random.cxx @@ -198,9 +198,8 @@ public: } ~Statistics(){} - void addValue(sal_Int16 _nIndex, sal_Int32 _nValue) + void addValue(sal_uInt8 _nIndex, sal_Int32 _nValue) { - OSL_ASSERT(_nIndex >= 0 && _nIndex < 256); m_nDispensation[_nIndex] += _nValue; } |