summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--mixlib/mix_parser.c4
-rw-r--r--mixlib/mix_symbol_table.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/mixlib/mix_parser.c b/mixlib/mix_parser.c
index a00886f..a811cce 100644
--- a/mixlib/mix_parser.c
+++ b/mixlib/mix_parser.c
@@ -2,7 +2,7 @@
* Implementation of the functions declared in mix_parser.h and
* xmix_parser.h
* ------------------------------------------------------------------
- * Copyright (C) 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
+ * Copyright (C) 2000, 2001, 2003, 2004, 2006 Free Software Foundation, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -494,7 +494,7 @@ mix_parser_set_future_ref (mix_parser_t *parser, const gchar *name)
{
list = g_hash_table_lookup (parser->future_refs, name);
if ( list == NULL ) nname = g_strdup (name);
- list = g_slist_prepend (list, (gpointer)((guint)parser->loc_count));
+ list = g_slist_prepend (list, GUINT_TO_POINTER ((guint)parser->loc_count));
g_hash_table_insert (parser->future_refs, (gpointer)nname, list);
}
}
diff --git a/mixlib/mix_symbol_table.c b/mixlib/mix_symbol_table.c
index dc56b7a..f219b81 100644
--- a/mixlib/mix_symbol_table.c
+++ b/mixlib/mix_symbol_table.c
@@ -1,7 +1,7 @@
/* -*-c-*- -------------- mix_symbol_table.c :
* Implementation of the functions declared in mix_symbol_table.h
* ------------------------------------------------------------------
- * Copyright (C) 2000, 2001, 2004 Free Software Foundation, Inc.
+ * Copyright (C) 2000, 2001, 2004, 2006 Free Software Foundation, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -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, (gpointer)value);
+ g_hash_table_insert (table, key, GINT_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, (gpointer)new_value);
+ g_hash_table_insert (table, key, GINT_TO_POINTER (new_value));
return MIX_SYM_OK;
}