From bc1dd1cee4318a67f9e17cbe519308330fd76eeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Tue, 7 Jul 2015 13:06:27 +0800 Subject: [PATCH] MetaBorder: Use float constants and functions instead of double variants We calculate with floats, so lets use that type throughout. https://bugzilla.gnome.org/show_bug.cgi?id=744104 --- src/core/meta-border.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/meta-border.c b/src/core/meta-border.c index cc996fef3..3c926c419 100644 --- a/src/core/meta-border.c +++ b/src/core/meta-border.c @@ -92,7 +92,7 @@ meta_line2_intersects_with (const MetaLine2 *line1, sxr = meta_vector2_cross_product (s, r); /* If r × s = 0 then the lines are either parallel or collinear. */ - if (fabs (rxs) < DBL_MIN) + if (fabsf (rxs) < FLT_MIN) return FALSE; t = meta_vector2_cross_product (meta_vector2_subtract (q, p), s) / rxs;