diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2022-12-13 09:25:47 +0000 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2022-12-19 10:35:28 +0000 |
commit | 95c21e693b9b865c928901d2b0c6e5020cf144d1 (patch) | |
tree | 2d6258559da547d1970137b3c6ed3a90b5c3c770 /sal | |
parent | 57cc304ce1e26a1cece8f2ffb5d728153974e05d (diff) |
Fix the "Found char > 127" warning to check the correct characters
Change-Id: Ia4a713c8a5ddda11e9802cbc317dde9ff48b8fd3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144026
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
(cherry picked from commit 15cce9806cff49d54a80b047dec33b021080d5cb)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144429
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sal')
-rw-r--r-- | sal/rtl/ustring.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sal/rtl/ustring.cxx b/sal/rtl/ustring.cxx index 6fc0e87076c2..45ab6e166871 100644 --- a/sal/rtl/ustring.cxx +++ b/sal/rtl/ustring.cxx @@ -194,10 +194,10 @@ sal_Bool SAL_CALL rtl_ustr_asciil_reverseEquals_WithLength( const sal_Unicode* p const char* pStr2Run = pStr2+nStrLen; while ( pStr1 < pStr1Run ) { - SAL_WARN_IF( !rtl::isAscii(static_cast<unsigned char>(*pStr2)), "rtl.string", - "rtl_ustr_asciil_reverseEquals_WithLength - Found char > 127" ); pStr1Run--; pStr2Run--; + SAL_WARN_IF( !rtl::isAscii(static_cast<unsigned char>(*pStr2Run)), "rtl.string", + "rtl_ustr_asciil_reverseEquals_WithLength - Found char > 127" ); if( *pStr1Run != static_cast<sal_Unicode>(*pStr2Run) ) return false; } |