mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-14 15:40:19 +02:00
* *.c, scm_validate.h: Use SCM_VALIDATE_NIM, not SCM_VALIDATE_NIMP
(none of the other validate macros have the trailing P).
This commit is contained in:
parent
5bff3127b5
commit
6b5a304f6b
11 changed files with 38 additions and 32 deletions
|
@ -364,7 +364,7 @@ GUILE_PROC (scm_random, "random", 1, 1, 0,
|
|||
SCM_ASSERT_RANGE (1,n,m > 0);
|
||||
return SCM_MAKINUM (scm_c_random (SCM_RSTATE (state), m));
|
||||
}
|
||||
SCM_VALIDATE_NIMP(1,n);
|
||||
SCM_VALIDATE_NIM (1,n);
|
||||
if (SCM_REALP (n))
|
||||
return scm_makdbl (SCM_REALPART (n) * scm_c_uniform01 (SCM_RSTATE (state)),
|
||||
0.0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue