[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patch] compile error fixes
Hi,
Here is a fix for some compile errors. No warrenty on whether they work:
Index: drgeo_gtkmacro.cc
===================================================================
RCS file: /cvs/gnome/dr-genius/drgeo/drgeo_gtkmacro.cc,v
retrieving revision 1.5
diff -u -r1.5 drgeo_gtkmacro.cc
--- drgeo_gtkmacro.cc 2000/01/11 15:02:19 1.5
+++ drgeo_gtkmacro.cc 2000/01/22 00:02:38
@@ -490,7 +490,7 @@
dialog = (drgeoGtkStyleDialog *)
gtk_object_get_data (GTK_OBJECT(widget), "drgeo_style");
- dialog->setColor ((drgeoColorType)data);
+ dialog->setColor (*(drgeoColorType*)data);
}
static void
style_size_button_cb (GtkWidget * widget, gpointer data)
@@ -499,7 +499,7 @@
dialog = (drgeoGtkStyleDialog *)
gtk_object_get_data (GTK_OBJECT(widget), "drgeo_style");
- dialog->setSize ((drgeoLineType)data);
+ dialog->setSize (*(drgeoLineType*)data);
}
static void
@@ -509,7 +509,7 @@
dialog = (drgeoGtkStyleDialog *)
gtk_object_get_data (GTK_OBJECT(widget), "drgeo_style");
- dialog->setShape ((drgeoPointType)data);
+ dialog->setShape (*(drgeoPointType*)data);
}
static void
Index: geoclass.cc
===================================================================
RCS file: /cvs/gnome/dr-genius/drgeo/geoclass.cc,v
retrieving revision 1.10
diff -u -r1.10 geoclass.cc
--- geoclass.cc 1999/12/01 11:33:48 1.10
+++ geoclass.cc 2000/01/22 00:02:39
@@ -116,7 +116,7 @@
fig->style.color = (drgeoColorType)couleur;
fig->style.type = (drgeoLineType)epaisseur;
fig->style.fill = (style & 128) == 128;
- fig->style.pointShape = style & 127;
+ fig->style.pointShape = (drgeoPointType) (style & 127);
fread (fig->nom, 1, LONGUEUR_NOM * sizeof (fig->nom[0]), f);
return TRUE;
}
I am getting many other errors though. Such as:
point.cc: In method `void homothetie_point::sauve_disk(_xmlNode *,
liste_elem &)':
point.cc:2208: passing `const char *' as argument 3 of
`xmlNewChild(_xmlNode *, xmlNs *, const xmlChar *, const xmlChar *)'
changes signedness
There are many errors of this type in that file.