diff options
author | Ludovic Courtès <ludo@gnu.org> | 2012-01-05 22:51:07 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2012-01-05 22:52:36 +0100 |
commit | fe2400c993927cd7d7ff89ebbe3af4c35e30a0e1 (patch) | |
tree | 37306cdf4232f615f1180dbfabfbf45627760ce6 /libguile/procprop.c | |
parent | f78a1ccede02ccad89d6c91a6b297f1f14a30907 (diff) | |
download | guile-fe2400c993927cd7d7ff89ebbe3af4c35e30a0e1.tar.gz |
Fix erroneous check in `set-procedure-properties!'.
* libguile/procprop.c
(scm_set_procedure_properties_x)[SCM_ENABLE_DEPRECATED == 1]: Pass arguments
to `scm_assq' in the right order, and check its return value with
`scm_is_true'. Reported by Mike Gran <spk121@yahoo.com>.
Diffstat (limited to 'libguile/procprop.c')
-rw-r--r-- | libguile/procprop.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libguile/procprop.c b/libguile/procprop.c index 8e2cd6a5f..428d63f91 100644 --- a/libguile/procprop.c +++ b/libguile/procprop.c @@ -1,5 +1,6 @@ -/* Copyright (C) 1995,1996,1998,2000,2001,2003,2004, 2006, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. - * +/* Copyright (C) 1995, 1996, 1998, 2000, 2001, 2003, 2004, 2006, + * 2008, 2009, 2010, 2011, 2012 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 * as published by the Free Software Foundation; either version 3 of @@ -175,7 +176,7 @@ SCM_DEFINE (scm_set_procedure_properties_x, "set-procedure-properties!", 2, 0, 0 SCM_VALIDATE_PROC (1, proc); #if (SCM_ENABLE_DEPRECATED == 1) - if (scm_assq (alist, scm_sym_arity)) + if (scm_is_true (scm_assq (scm_sym_arity, alist))) SCM_MISC_ERROR ("arity is a read-only property", SCM_EOL); #endif |