mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 05:50:26 +02:00
fix scm_procedure on non-structs
* libguile/procs.c (scm_procedure): Fix argument type check.
This commit is contained in:
parent
de6fb1875d
commit
05e0e22bc5
1 changed files with 2 additions and 2 deletions
|
@ -134,8 +134,8 @@ SCM_DEFINE (scm_procedure, "procedure", 1, 0, 0,
|
|||
"applicable struct.")
|
||||
#define FUNC_NAME s_scm_procedure
|
||||
{
|
||||
SCM_VALIDATE_NIM (1, proc);
|
||||
SCM_ASSERT (SCM_STRUCT_APPLICABLE_P (proc), proc, SCM_ARG1, FUNC_NAME);
|
||||
SCM_ASSERT (SCM_STRUCTP (proc) && SCM_STRUCT_APPLICABLE_P (proc),
|
||||
proc, SCM_ARG1, FUNC_NAME);
|
||||
return SCM_STRUCT_PROCEDURE (proc);
|
||||
}
|
||||
#undef FUNC_NAME
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue