diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-05-03 21:38:36 +0200 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2010-05-03 22:47:21 +0200 |
commit | c1d36af3e82d663525e43435aab700c2efb1e656 (patch) | |
tree | 1c30e60bf797f62c1aeb7461fb1f803980c1fe43 /gtk/gtklabel.c | |
parent | ba3e997daea267b100988ecd7c6d0767c334dfbc (diff) | |
download | gtk+-c1d36af3e82d663525e43435aab700c2efb1e656.tar.gz |
Do not use C99 constant INFINITY
Use G_MAXDOUBLE instead
Diffstat (limited to 'gtk/gtklabel.c')
-rw-r--r-- | gtk/gtklabel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c index 60ea406bc4..3d58d25342 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); |