mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 05:50:26 +02:00
* numbers.c (scm_odd_p, scm_even_p): Use SCM_WRONG_TYPE_ARG
instead of SCM_ASSERT (0, ...). (Some compilers will complain about control reaching end of function otherwise, and, besides, the new code is not less clear.)
This commit is contained in:
parent
9764c29b8c
commit
a1a33b0f99
1 changed files with 2 additions and 2 deletions
|
@ -107,7 +107,7 @@ SCM_DEFINE (scm_odd_p, "odd?", 1, 0, 0,
|
|||
return SCM_BOOL ((1 & SCM_BDIGITS (n) [0]) != 0);
|
||||
#endif
|
||||
} else {
|
||||
SCM_ASSERT (0, n, 1, FUNC_NAME);
|
||||
SCM_WRONG_TYPE_ARG (1, n);
|
||||
}
|
||||
}
|
||||
#undef FUNC_NAME
|
||||
|
@ -125,7 +125,7 @@ SCM_DEFINE (scm_even_p, "even?", 1, 0, 0,
|
|||
return SCM_BOOL ((1 & SCM_BDIGITS (n) [0]) == 0);
|
||||
#endif
|
||||
} else {
|
||||
SCM_ASSERT (0, n, 1, FUNC_NAME);
|
||||
SCM_WRONG_TYPE_ARG (1, n);
|
||||
}
|
||||
}
|
||||
#undef FUNC_NAME
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue