diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-09-17 17:02:10 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-09-18 21:24:57 +0200 |
commit | 35dfb73889a084fc4a428071471429396a7d1287 (patch) | |
tree | 250393eb9b6aaeac501519477aca442e5465f82a /svl/source/numbers | |
parent | 57ecae2843c80d67ab9a3aaaf004fe131c4f13ae (diff) |
cid#1607355 silence Overflowed constant
and
cid#1607426 Overflowed constant
cid#1608151 Overflowed constant
cid#1608163 Overflowed constant
cid#1608208 Overflowed constant
cid#1608228 Overflowed constant
cid#1608299 Overflowed constant
cid#1608549 Overflowed constant
cid#1607982 Overflowed constant
cid#1608078 Overflowed return value
Change-Id: Id4ccc03b610f4dcf7912c239c7c079da1aef4ba2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173615
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'svl/source/numbers')
-rw-r--r-- | svl/source/numbers/zformat.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx index 31991e8c20b5..eda77fc62859 100644 --- a/svl/source/numbers/zformat.cxx +++ b/svl/source/numbers/zformat.cxx @@ -1554,7 +1554,7 @@ OUString SvNumberformat::LocaleType::generateCode() const { aBuf.append(toUniChar(n)); } - n16 = n16 << 4; + n16 = (n16 << 4) & 0xFFFF; } return aBuf.makeStringAndClear(); |