mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-01 12:20:26 +02:00
(scm_random_solid_sphere_x, scm_random_hollow_sphere_x): Do not
validate vector argument, this is already done elsewhere.
This commit is contained in:
parent
90d4368c88
commit
e911caec2b
1 changed files with 0 additions and 2 deletions
|
@ -491,7 +491,6 @@ SCM_DEFINE (scm_random_solid_sphere_x, "random:solid-sphere!", 1, 1, 0,
|
||||||
"The sum of the squares of the numbers is returned.")
|
"The sum of the squares of the numbers is returned.")
|
||||||
#define FUNC_NAME s_scm_random_solid_sphere_x
|
#define FUNC_NAME s_scm_random_solid_sphere_x
|
||||||
{
|
{
|
||||||
SCM_VALIDATE_VECTOR_OR_DVECTOR (1, v);
|
|
||||||
if (SCM_UNBNDP (state))
|
if (SCM_UNBNDP (state))
|
||||||
state = SCM_VARIABLE_REF (scm_var_random_state);
|
state = SCM_VARIABLE_REF (scm_var_random_state);
|
||||||
SCM_VALIDATE_RSTATE (2, state);
|
SCM_VALIDATE_RSTATE (2, state);
|
||||||
|
@ -514,7 +513,6 @@ SCM_DEFINE (scm_random_hollow_sphere_x, "random:hollow-sphere!", 1, 1, 0,
|
||||||
"unit n-sphere.")
|
"unit n-sphere.")
|
||||||
#define FUNC_NAME s_scm_random_hollow_sphere_x
|
#define FUNC_NAME s_scm_random_hollow_sphere_x
|
||||||
{
|
{
|
||||||
SCM_VALIDATE_VECTOR_OR_DVECTOR (1, v);
|
|
||||||
if (SCM_UNBNDP (state))
|
if (SCM_UNBNDP (state))
|
||||||
state = SCM_VARIABLE_REF (scm_var_random_state);
|
state = SCM_VARIABLE_REF (scm_var_random_state);
|
||||||
SCM_VALIDATE_RSTATE (2, state);
|
SCM_VALIDATE_RSTATE (2, state);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue