From 17a05a38b97caa83a6da19e7970e9914629cb995 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 14 May 2016 10:34:35 +0200 Subject: pose-widget: don't promote to double Committer shouldn't push so fast to get a chance to rebase. Closes #356 --- pose-widget/glwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pose-widget') 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 -- cgit v1.2.3