[mutter] MetaBorder: Use float constants and functions instead of double variants
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] MetaBorder: Use float constants and functions instead of double variants
- Date: Tue, 16 Feb 2016 11:04:02 +0000 (UTC)
commit bc1dd1cee4318a67f9e17cbe519308330fd76eeb
Author: Jonas Ådahl <jadahl gmail com>
Date: Tue Jul 7 13:06:27 2015 +0800
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/core/meta-border.c b/src/core/meta-border.c
index cc996fe..3c926c4 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]