mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
Fix scm_weak_table_refq for undefined default
* libguile/weak-table.c (scm_weak_table_refq): No need to default weak table result to #f; just use whatever was passed in.
This commit is contained in:
parent
0dcca77754
commit
5a3bc32c99
1 changed files with 0 additions and 3 deletions
|
@ -912,9 +912,6 @@ assq_predicate (SCM x, SCM y, void *closure)
|
|||
SCM
|
||||
scm_weak_table_refq (SCM table, SCM key, SCM dflt)
|
||||
{
|
||||
if (SCM_UNBNDP (dflt))
|
||||
dflt = SCM_BOOL_F;
|
||||
|
||||
return scm_c_weak_table_ref (table, scm_ihashq (key, -1),
|
||||
assq_predicate, SCM_UNPACK_POINTER (key),
|
||||
dflt);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue