diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-11-17 10:35:57 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-11-17 11:35:07 +0100 |
commit | a664d4d44ce66db8d60d8c0ebf8bb793ecf2c462 (patch) | |
tree | 29268340abefcead72fdd4faf496127ae5b56c68 /include/rtl | |
parent | 22b930fefa68db0c581068045c68cad71879b901 (diff) |
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.hxx | 2 |
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. |