[gtk+] Do not use C99 constant INFINITY
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Do not use C99 constant INFINITY
- Date: Mon, 3 May 2010 20:47:32 +0000 (UTC)
commit c1d36af3e82d663525e43435aab700c2efb1e656
Author: Javier Jardón <jjardon gnome org>
Date: Mon May 3 21:38:36 2010 +0200
Do not use C99 constant INFINITY
Use G_MAXDOUBLE instead
gtk/gtklabel.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index 60ea406..3d58d25 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -3623,13 +3623,13 @@ gtk_label_size_allocate (GtkWidget *widget,
gint cy;
x0 = bounds.width / 2;
- y0 = dx ? x0 * dy / dx : dy * INFINITY;
+ y0 = dx ? x0 * dy / dx : G_MAXDOUBLE;
vertical = fabs (y0) > bounds.height / 2;
if (vertical)
{
y0 = bounds.height/2;
- x0 = dy ? y0 * dx / dy : dx * INFINITY;
+ x0 = dy ? y0 * dx / dy : G_MAXDOUBLE;
}
length = 2 * sqrt (x0 * x0 + y0 * y0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]