[Xfce4-commits] <xfce4-panel:devel> * Fix unsafe loop so gcc can optimize it.
Nick Schermer
nick at xfce.org
Tue Aug 11 20:26:34 CEST 2009
Updating branch refs/heads/devel
to a038d25a4cfc98674aae553ab118b0f64b8c96ef (commit)
from e6192462e55cf3efa2e8d588a42502a5d0ad1e33 (commit)
commit a038d25a4cfc98674aae553ab118b0f64b8c96ef
Author: Nick Schermer <nick at xfce.org>
Date: Tue Dec 30 13:12:28 2008 +0100
* Fix unsafe loop so gcc can optimize it.
panel/panel-window.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/panel/panel-window.c b/panel/panel-window.c
index b931c57..cfed99e 100644
--- a/panel/panel-window.c
+++ b/panel/panel-window.c
@@ -1329,7 +1329,7 @@ panel_window_paint_handle (PanelWindow *window,
GtkWidget *widget = GTK_WIDGET (window);
GtkAllocation *alloc = &(widget->allocation);
gint x, y, width, height;
- gint i, xx, yy;
+ guint i, xx, yy;
GdkColor *color;
gdouble alpha;
@@ -1379,8 +1379,8 @@ panel_window_paint_handle (PanelWindow *window,
xfce_panel_cairo_set_source_rgba (cr, color, alpha);
/* draw the dots */
- for (xx = 0; xx < width; xx += 3)
- for (yy = 0; yy < height; yy += 3)
+ for (xx = 0; xx < (guint) width; xx += 3)
+ for (yy = 0; yy < (guint) height; yy += 3)
cairo_rectangle (cr, x + xx, y + yy, i, i);
/* fill the rectangles */
More information about the Xfce4-commits
mailing list