diff options
Diffstat (limited to 'libguile/validate.h')
-rw-r--r-- | libguile/validate.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libguile/validate.h b/libguile/validate.h index 3da0d0500..18a671e61 100644 --- a/libguile/validate.h +++ b/libguile/validate.h @@ -143,7 +143,7 @@ #define SCM_VALIDATE_BOOL_COPY(pos, flag, cvar) \ do { \ SCM_ASSERT (scm_is_bool (flag), flag, pos, FUNC_NAME); \ - cvar = SCM_EQ_P (flag, SCM_BOOL_T) ? 1 : 0; \ + cvar = scm_to_bool (flag); \ } while (0) #define SCM_VALIDATE_CHAR(pos, scm) SCM_MAKE_VALIDATE_MSG (pos, scm, CHARP, "character") @@ -306,7 +306,7 @@ #define SCM_VALIDATE_PROC(pos, proc) \ do { \ - SCM_ASSERT (SCM_EQ_P (scm_procedure_p (proc), SCM_BOOL_T), proc, pos, FUNC_NAME); \ + SCM_ASSERT (scm_is_true (scm_procedure_p (proc)), proc, pos, FUNC_NAME); \ } while (0) #define SCM_VALIDATE_NULLORCONS(pos, env) \ |