diff options
author | Yukio Siraichi <yukio.siraichi@gmail.com> | 2020-03-13 15:41:40 +0900 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2020-03-14 09:19:00 +0100 |
commit | 3bf3face224a7e12ba95888821a0ac21525af22c (patch) | |
tree | 93908386dd614404e46898ae16ee179549a1a0f9 /filter | |
parent | tdf#130974 replace `rtl::math::isSignBitSet` with `std::signbit`. (diff) | |
download | core-3bf3face224a7e12ba95888821a0ac21525af22c.tar.gz core-3bf3face224a7e12ba95888821a0ac21525af22c.zip |
tdf#130975 replace `rtl::math::isNan` with `std::isnan`.
Change-Id: I5d53e6369d35093445b2efd8936bbf8c6775ff47
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90451
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/graphicfilter/itiff/itiff.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/filter/source/graphicfilter/itiff/itiff.cxx b/filter/source/graphicfilter/itiff/itiff.cxx index d5678db25dba..83fdf73e4f35 100644 --- a/filter/source/graphicfilter/itiff/itiff.cxx +++ b/filter/source/graphicfilter/itiff/itiff.cxx @@ -269,7 +269,7 @@ sal_uInt32 TIFFReader::ReadIntData() break; case 11 : pTIFF->ReadFloat( nFLOAT ); - if (!rtl::math::isNan(nFLOAT) && nFLOAT > SAL_MIN_INT32 - 1.0 + if (!std::isnan(nFLOAT) && nFLOAT > SAL_MIN_INT32 - 1.0 && nFLOAT < SAL_MAX_INT32 + 1.0) { nUINT32a = static_cast<sal_Int32>(nFLOAT); @@ -281,7 +281,7 @@ sal_uInt32 TIFFReader::ReadIntData() break; case 12 : pTIFF->ReadDouble( nDOUBLE ); - if (!rtl::math::isNan(nDOUBLE) && nDOUBLE > SAL_MIN_INT32 - 1.0 + if (!std::isnan(nDOUBLE) && nDOUBLE > SAL_MIN_INT32 - 1.0 && nDOUBLE < SAL_MAX_INT32 + 1.0) { nUINT32a = static_cast<sal_Int32>(nDOUBLE); |