sal/rtl/strtmpl.hxx | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-)
New commits: commit d5c8888dedbf2241f9b09bbb5698f37c89f9510b Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Tue Feb 22 19:13:42 2022 +0100 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Wed Feb 23 05:59:36 2022 +0100 Drop obsolete code Change-Id: Ia362d00c7637370f4dc967763892269909f06578 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130369 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> diff --git a/sal/rtl/strtmpl.hxx b/sal/rtl/strtmpl.hxx index d3da51a60c48..271f70bc2e37 100644 --- a/sal/rtl/strtmpl.hxx +++ b/sal/rtl/strtmpl.hxx @@ -867,17 +867,8 @@ T toInt_WithLength ( const IMPL_RTL sal_Int16 nMod; if ( bNeg ) { - nDiv = std::numeric_limits<T>::min() / nRadix; - nMod = std::numeric_limits<T>::min() % nRadix; - // Cater for C++03 implementations that round the quotient down - // instead of truncating towards zero as mandated by C++11: - if ( nMod > 0 ) - { - --nDiv; - nMod -= nRadix; - } - nDiv = -nDiv; - nMod = -nMod; + nDiv = -(std::numeric_limits<T>::min() / nRadix); + nMod = -(std::numeric_limits<T>::min() % nRadix); } else {