[goffice] Fixed 64-bits warnings in mf-demo.



commit 65da459068c70ee9a12b8848d06ced8a90603115
Author: Jean Brefort <jean brefort normalesup org>
Date:   Tue May 11 16:21:16 2010 +0200

    Fixed 64-bits warnings in mf-demo.

 tests/mf-demo.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/tests/mf-demo.c b/tests/mf-demo.c
index c6df0fd..1d8c11b 100644
--- a/tests/mf-demo.c
+++ b/tests/mf-demo.c
@@ -341,7 +341,7 @@ set_text (Page* pg, GocCanvas* canvas, char* txt, int len, GtkAnchorType* anchor
 	dc = &g_array_index (pg->dcs, DC, pg->curdc);
 	txt[len] = 0;
 	if (-1 != dc->curfnt) {
-		mfo = g_hash_table_lookup (pg->mfobjs, (gpointer) dc->curfnt);
+		mfo = g_hash_table_lookup (pg->mfobjs, GINT_TO_POINTER (dc->curfnt));
 		font = mfo->values;
 
 		if (!g_ascii_strcasecmp ("MT Extra", font->name)) {
@@ -523,7 +523,7 @@ set_font (Page *pg, GocItem *item)
 	if (-1 == dc->curfnt)
 		return;
 
-	mfo = g_hash_table_lookup (pg->mfobjs, (gpointer) dc->curfnt);
+	mfo = g_hash_table_lookup (pg->mfobjs, GINT_TO_POINTER (dc->curfnt));
 	font = mfo->values;
 	// convert font values to PangoAttrList
 	if (font->escape > 0) {
@@ -578,7 +578,7 @@ stroke (Page *pg, GocItem *item)
 
 	style = go_styled_object_get_style (GO_STYLED_OBJECT (item));
 
-	mfo = g_hash_table_lookup (pg->mfobjs, (gpointer) dc->curfg);
+	mfo = g_hash_table_lookup (pg->mfobjs, GINT_TO_POINTER (dc->curfg));
 	p = mfo->values;
 	pstyle = p->style;
 	if (p->style == 5) {
@@ -627,7 +627,7 @@ fill (Page *pg, GocItem *item)
 		return;
 
 	style = go_styled_object_get_style (GO_STYLED_OBJECT (item));
-	mfo = g_hash_table_lookup (pg->mfobjs, (gpointer) dc->curbg);
+	mfo = g_hash_table_lookup (pg->mfobjs, GINT_TO_POINTER (dc->curbg));
 	b = mfo->values;
 	switch (b->style) {
 	case 1:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]