Package: diasce
Version: 1.0.5-1.1
Severity: serious
Tags: patch

diasce fails to build because it has an invalid lvalue in an
assignment:

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include -I/usr/include/gnome-xml 
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include 
-I/usr/X11R6/include/X11 -I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H 
-I/usr/lib/gnome-libs/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 
-I/usr/lib/glib/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include 
-I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include 
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include   
-I/usr/include/glib-1.2 -I/usr/lib/glib/include    -D_LINUX  -O2  -Wall -c 
gtkextext.c
gtkextext.c: In function 'line_set_cursor_pos':
gtkextext.c:1020: error: invalid lvalue in assignment

The attached patch fixes this problem.

-- 
Matt
only in patch2:
unchanged:
--- diasce-1.0.5.orig/src/gtkextext.c
+++ diasce-1.0.5/src/gtkextext.c
@@ -1017,7 +1017,7 @@
   }
   else if(text->draw_numbers && width < (val+text->gutter_width))
   {
-     val = (gfloat)width -= text->gutter_width;
+     val = (gfloat)(width -= text->gutter_width);
      gtk_adjustment_set_value(text->hadj, val);
   }
 

Attachment: signature.asc
Description: Digital signature

Reply via email to