[the-board] [build] Fix build warning on gir file



commit 337943f44230da7e9e1a684158d26bcb6e8c4096
Author: Lucas Rocha <lucasr gnome org>
Date:   Fri Nov 26 16:08:27 2010 +0000

    [build] Fix build warning on gir file

 src/tb/tb-box.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/tb/tb-box.c b/src/tb/tb-box.c
index ddcb2c3..467087d 100644
--- a/src/tb/tb-box.c
+++ b/src/tb/tb-box.c
@@ -49,12 +49,11 @@ G_DEFINE_TYPE_WITH_CODE (TbBox, tb_box, MX_TYPE_WIDGET,
 #define BOX_CHILD_IN_LAYOUT(c)    \
 (!c->fixed && (BOX_CHILD_IS_VISIBLE (c) || c->if_hidden))
 
-#define FLOAT_EPSILON (1e-30)
-
 static inline gboolean
 float_equals(gfloat a, gfloat b) {
-  return a - b < FLOAT_EPSILON &&
-         a - b > -FLOAT_EPSILON;
+
+  return a - b < (1e-30) &&
+         a - b > -(1e-30);
 }
 
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]