mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
Fix scm_make_foreign_object_n.
* libguile/foreign-object.c (scm_make_foreign_object_n): Fix computation
of slot count; broken in 34b9f22ca
.
This commit is contained in:
parent
09b8f8ec06
commit
4dba01501c
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ scm_make_foreign_object_n (SCM type, size_t n, void *vals[])
|
|||
|
||||
SCM_VALIDATE_VTABLE (SCM_ARG1, type);
|
||||
|
||||
if (SCM_VTABLE_SIZE (type) / 2 < n)
|
||||
if (SCM_VTABLE_SIZE (type) < n)
|
||||
scm_out_of_range (FUNC_NAME, scm_from_size_t (n));
|
||||
|
||||
for (i = 0; i < n; i++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue