Fix invalid use of `SCM' as a Boolean.
authorLudovic Courtès <ludo@gnu.org>
Fri, 8 Jun 2012 10:44:07 +0000 (12:44 +0200)
committerLudovic Courtès <ludo@gnu.org>
Fri, 8 Jun 2012 10:44:07 +0000 (12:44 +0200)
* libguile/deprecated.c (scm_sym2var): Check `scm_is_true (definep)'.

libguile/deprecated.c

index 61fa8e2..af0752c 100644 (file)
@@ -2653,13 +2653,13 @@ scm_i_deprecated_asrtgo (scm_t_bits condition)
  * the scm_pre_modules_obarray (a `eq' hash table).
  */
 
-SCM 
+SCM
 scm_sym2var (SCM sym, SCM proc, SCM definep)
 #define FUNC_NAME "scm_sym2var"
 {
   SCM var;
 
-  if (definep)
+  if (scm_is_true (definep))
     scm_c_issue_deprecation_warning
       ("scm_sym2var is deprecated. Use scm_define or scm_module_define\n"
        "to define variables.  In some rare cases you may need\n"