diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2006-08-08 12:28:05 +0000 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2006-08-08 12:28:05 +0000 |
commit | 2e65cc1c3379a242687e71b3dd470fd582801e17 (patch) | |
tree | b2cb6eff4142f016bc17dfb138b4eb8ce4878a4d /mixlib/mix_symbol_table.c | |
parent | 2868cdc7a2c93152543bac9bab6514f2bad5932e (diff) | |
download | mdk-2e65cc1c3379a242687e71b3dd470fd582801e17.tar.gz mdk-2e65cc1c3379a242687e71b3dd470fd582801e17.tar.bz2 |
Sloppy gpointer conversions fixed
git-archimport-id: mdk@sv.gnu.org/mdk--devel--1--patch-32
Diffstat (limited to 'mixlib/mix_symbol_table.c')
-rw-r--r-- | mixlib/mix_symbol_table.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |