summaryrefslogtreecommitdiffstats
path: root/include/rtl
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-11-17 10:35:57 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2021-11-17 11:35:07 +0100
commita664d4d44ce66db8d60d8c0ebf8bb793ecf2c462 (patch)
tree29268340abefcead72fdd4faf496127ae5b56c68 /include/rtl
parentfix SkiaTest::testDrawDelayedScaleImage() with GPU+HiDPI (diff)
downloadcore-a664d4d44ce66db8d60d8c0ebf8bb793ecf2c462.tar.gz
core-a664d4d44ce66db8d60d8c0ebf8bb793ecf2c462.zip
Fix the calculated constant
rtl::math::isValidArcArg's comment talks about 2^64 = 1.844e19; but the calculation resulted in 2^63. Unfortunately we can't use C++17 hex-exponent notation in published API header. Change-Id: I1dd6e754431ad028982623ff5de4c6329fd6c2ad Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125348 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'include/rtl')
-rw-r--r--include/rtl/math.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rtl/math.hxx b/include/rtl/math.hxx
index d67d4aa75a4a..7da30df6832b 100644
--- a/include/rtl/math.hxx
+++ b/include/rtl/math.hxx
@@ -431,7 +431,7 @@ inline bool isValidArcArg(double d)
return fabs(d)
<= (static_cast< double >(static_cast< unsigned long >(0x80000000))
* static_cast< double >(static_cast< unsigned long >(0x80000000))
- * 2);
+ * 4);
}
/** Safe sin(), returns NAN if not valid.