Commit c0e82b9f authored by Stephen M. Webb's avatar Stephen M. Webb

debian/patches/0001-float-comparisons.patch: removed (fixed upstream)

parent 29d66ae4
wfmath (1.0.2+dfsg1-1) UNRELEASED; urgency=low
* new upstream release
* debian/patches/0001-float-comparisons.patch: refreshed
* debian/patches/0001-float-comparisons.patch: removed (fixed upstream)
* bumped package names to 1.0
* debian/control: updated to Standards-Version 3.9.4 (no changes)
* debian/control: used canonical form for VCS-* fields
......
Description: fix float comparisons that cause FTBFS on some architectures
Author: Stephen M. Webb <stephen.webb@bregmasoft.ca>
--- a/wfmath/intersect_decls.h
+++ b/wfmath/intersect_decls.h
@@ -34,7 +34,7 @@
inline bool _Less(CoordType x1, CoordType x2, bool proper)
{
- return !proper ? x1 < x2 : x1 <= x2;
+ return proper ? x1 <= x2 : (x2 - x1) > numeric_constants<CoordType>::epsilon();
}
inline bool _LessEq(CoordType x1, CoordType x2, bool proper)
@@ -44,7 +44,7 @@
inline bool _Greater(CoordType x1, CoordType x2, bool proper)
{
- return !proper ? x1 > x2 : x1 >= x2;
+ return proper ? x1 >= x2 : (x1 - x2) > numeric_constants<CoordType>::epsilon();
}
inline bool _GreaterEq(CoordType x1, CoordType x2, bool proper)
0001-float-comparisons.patch
0002-replace-mersenne-twister.patch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment