diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2019-12-07 19:21:34 +0100 |
---|---|---|
committer | Tamás Zolnai <tamas.zolnai@collabora.com> | 2019-12-07 22:15:06 +0100 |
commit | c4d3d5a753adc005c34aee3f7f81df4c36d3e261 (patch) | |
tree | b7f3ac92c0e8973fdd514d08e262a9d62e131a81 /tools | |
parent | ec1795c654cc7a1ae7f7eed0db0588e206346c11 (diff) |
clang-tidy(WIP): bugprone-signed-char-misuse findings 3
Convert char to unsigned char first in some found use cases.
In these cases the chart is converted to an unsigned integer,
so characters with negativ values would be converted to wierd
values around the maximum value of sal_uInt32.
Change-Id: I5570b414ff9c0178222ec40830b490824d8abb07
Reviewed-on: https://gerrit.libreoffice.org/84690
Tested-by: Jenkins
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/inet/inetmime.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/source/inet/inetmime.cxx b/tools/source/inet/inetmime.cxx index 0eab4528c8eb..b96e463154e4 100644 --- a/tools/source/inet/inetmime.cxx +++ b/tools/source/inet/inetmime.cxx @@ -1272,7 +1272,7 @@ OUString INetMIME::decodeHeaderFieldBody(const OString& rBody) } else { - sal_uInt32 nChar = *q++; + sal_uInt32 nChar = static_cast<unsigned char>(*q++); switch (nChar) { case '=': |