diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-05-14 10:34:35 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-05-14 10:34:35 +0200 |
commit | 17a05a38b97caa83a6da19e7970e9914629cb995 (patch) | |
tree | d9353254b7d4b08bc82b28a0750165d9fb024d2a | |
parent | d61985973522cb00b85351c8dfa6a3cba715f82a (diff) |
pose-widget: don't promote to double
Committer shouldn't push so fast to get a chance to rebase.
Closes #356
-rw-r--r-- | pose-widget/glwidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pose-widget/glwidget.cpp b/pose-widget/glwidget.cpp index b7da4cef..a6425fde 100644 --- a/pose-widget/glwidget.cpp +++ b/pose-widget/glwidget.cpp @@ -68,7 +68,7 @@ public: dot01 = v0.dot(v1); dot11 = v1.dot(v1); const num denom = dot00 * dot11 - dot01 * dot01; - if (std::fabs(denom) < 1e3) + if (std::fabs(denom) < 1e3f) { // for perpendicular plane, ensure u and v don't come out right // this is done here to avoid branching below, in a hot loop |