mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
Remove public SCM_VALIDATE_NIM
* libguile/random.c (scm_random): Remove needless use of SCM_VALIDATE_NIM. * libguile/srcprop.c (SCM_VALIDATE_NIM): Move definition here, as this file is its only use. * libguile/validate.h (SCM_VALIDATE_NIM): Remove. This was public but unlikely to be used in the wild.
This commit is contained in:
parent
82d5662887
commit
eb5e1b8d5f
3 changed files with 3 additions and 3 deletions
|
@ -411,7 +411,6 @@ SCM_DEFINE (scm_random, "random", 1, 1, 0,
|
|||
#error "Cannot deal with this platform's scm_t_bits size"
|
||||
#endif
|
||||
}
|
||||
SCM_VALIDATE_NIM (1, n);
|
||||
if (SCM_REALP (n))
|
||||
return scm_from_double (SCM_REAL_VALUE (n)
|
||||
* scm_c_uniform01 (SCM_RSTATE (state)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue