summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJonas Ådahl <jadahl@gmail.com>2015-07-07 13:06:27 +0800
committerJonas Ådahl <jadahl@gmail.com>2016-02-16 19:02:48 +0800
commitbc1dd1cee4318a67f9e17cbe519308330fd76eeb (patch)
tree526a51283971bd0777ba97127f61e9a13d2193b1 /src
parent495c89401a35f97266018fe9938945861d970dbd (diff)
downloadmutter-bc1dd1cee4318a67f9e17cbe519308330fd76eeb.tar.gz
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
Diffstat (limited to 'src')
-rw-r--r--src/core/meta-border.c2
1 files changed, 1 insertions, 1 deletions
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;