/* Copyright (C) 1995, 1996, 1998, 1999, 2000, 2001, 2003, 2004, 2006,
- * 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
+ * 2008, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
if (SCM_WEAK_TABLE_P (table))
return scm_c_weak_table_ref (table, scm_ihashv (key, -1),
- assv_predicate, SCM_PACK (key), dflt);
+ assv_predicate,
+ (void *) SCM_UNPACK (key), dflt);
return scm_hash_fn_ref (table, key, dflt,
(scm_t_hash_fn) scm_ihashv,
if (SCM_WEAK_TABLE_P (table))
{
scm_c_weak_table_put_x (table, scm_ihashv (key, -1),
- assv_predicate, SCM_PACK (key),
+ assv_predicate, (void *) SCM_UNPACK (key),
key, val);
return val;
}
if (SCM_WEAK_TABLE_P (table))
{
scm_c_weak_table_remove_x (table, scm_ihashv (key, -1),
- assv_predicate, SCM_PACK (key));
+ assv_predicate, (void *) SCM_UNPACK (key));
/* See note in hashq-remove!. */
return SCM_BOOL_F;
}
if (SCM_WEAK_TABLE_P (table))
return scm_c_weak_table_ref (table, scm_ihash (key, -1),
- assoc_predicate, SCM_PACK (key), dflt);
+ assoc_predicate,
+ (void *) SCM_UNPACK (key), dflt);
return scm_hash_fn_ref (table, key, dflt,
(scm_t_hash_fn) scm_ihash,
if (SCM_WEAK_TABLE_P (table))
{
scm_c_weak_table_put_x (table, scm_ihash (key, -1),
- assoc_predicate, SCM_PACK (key),
+ assoc_predicate, (void *) SCM_UNPACK (key),
key, val);
return val;
}
if (SCM_WEAK_TABLE_P (table))
{
scm_c_weak_table_remove_x (table, scm_ihash (key, -1),
- assoc_predicate, SCM_PACK (key));
+ assoc_predicate, (void *) SCM_UNPACK (key));
/* See note in hashq-remove!. */
return SCM_BOOL_F;
}