1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-31 10:46:16 +00:00

Fix the build with GCC 4.x.

Reported by:	pointyhat via kris
This commit is contained in:
Joe Marcus Clarke 2007-04-07 05:53:56 +00:00
parent 135998aa63
commit ced09912aa
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=189414

View File

@ -0,0 +1,12 @@
--- src/gtkextext/gtkextext.c.orig Sat Apr 7 01:47:56 2007
+++ src/gtkextext/gtkextext.c Sat Apr 7 01:52:20 2007
@@ -1140,7 +1140,8 @@ line_set_cursor_pos (GtkExText * text, g
val = (gfloat) width;
gtk_adjustment_set_value (text->hadj, val);
} else if (text->draw_numbers && width < (val + text->gutter_width)) {
- val = (gfloat) width -= text->gutter_width;
+ width -= text->gutter_width;
+ val = (gfloat) width;
gtk_adjustment_set_value (text->hadj, val);
}