summaryrefslogtreecommitdiffhomepage
path: root/mixlib
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2006-08-10 18:59:28 +0000
committerJose Antonio Ortega Ruiz <jao@gnu.org>2006-08-10 18:59:28 +0000
commit39d48633458130498eeabc02332754ba34b8b645 (patch)
tree14e2825d08f841c2848ae09917504136df3fb589 /mixlib
parent95a600525148564d98a0c26f1c7fe9d8b6ecc7a5 (diff)
downloadmdk-39d48633458130498eeabc02332754ba34b8b645.tar.gz
mdk-39d48633458130498eeabc02332754ba34b8b645.tar.bz2
64bit compilation fixes & About dialog embellishments
git-archimport-id: mdk@sv.gnu.org/mdk--devel--1--patch-37
Diffstat (limited to 'mixlib')
-rw-r--r--mixlib/mix_parser.c3
-rw-r--r--mixlib/mix_symbol_table.c4
2 files changed, 4 insertions, 3 deletions
diff --git a/mixlib/mix_parser.c b/mixlib/mix_parser.c
index a811cce..edda2b2 100644
--- a/mixlib/mix_parser.c
+++ b/mixlib/mix_parser.c
@@ -548,7 +548,8 @@ add_raw_ (mix_parser_t *parser, mix_word_t word, guint lineno)
ins_node_ *node = g_new (ins_node_, 1);
node->ins = word;
node->lineno = lineno;
- g_tree_insert (parser->ins_table, (gpointer)((guint)parser->loc_count),
+ g_tree_insert (parser->ins_table,
+ GUINT_TO_POINTER ((guint)parser->loc_count),
(gpointer)node);
}
}
diff --git a/mixlib/mix_symbol_table.c b/mixlib/mix_symbol_table.c
index f219b81..5153c73 100644
--- a/mixlib/mix_symbol_table.c
+++ b/mixlib/mix_symbol_table.c
@@ -122,7 +122,7 @@ mix_symbol_table_add (mix_symbol_table_t *table,
if ( !g_hash_table_lookup_extended (table, sym, &key, &val) )
{
key = g_strdup (sym);
- g_hash_table_insert (table, key, GINT_TO_POINTER (value));
+ g_hash_table_insert (table, key, GUINT_TO_POINTER (value));
return MIX_SYM_OK;
}
else
@@ -141,7 +141,7 @@ mix_symbol_table_insert (mix_symbol_table_t *table,
if ( !g_hash_table_lookup_extended (table, sym, &key, &val) )
key = g_strdup (sym);
- g_hash_table_insert (table, key, GINT_TO_POINTER (new_value));
+ g_hash_table_insert (table, key, GUINT_TO_POINTER (new_value));
return MIX_SYM_OK;
}