|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r79505 - trunk/boost/geometry/strategies/cartesian
From: barend.gehrels_at_[hidden]
Date: 2012-07-14 12:58:24
Author: barendgehrels
Date: 2012-07-14 12:58:23 EDT (Sat, 14 Jul 2012)
New Revision: 79505
URL: http://svn.boost.org/trac/boost/changeset/79505
Log:
[geometry] Bugfix for integer coordinates, causing intersection points at wrong locations (severe)
Text files modified:
trunk/boost/geometry/strategies/cartesian/cart_intersect.hpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Modified: trunk/boost/geometry/strategies/cartesian/cart_intersect.hpp
==============================================================================
--- trunk/boost/geometry/strategies/cartesian/cart_intersect.hpp (original)
+++ trunk/boost/geometry/strategies/cartesian/cart_intersect.hpp 2012-07-14 12:58:23 EDT (Sat, 14 Jul 2012)
@@ -193,7 +193,7 @@
}
else
{
- r = da / d;
+ r = promoted_type(da) / promoted_type(d);
if (! robustness_verify_r(a, b, r))
{
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk