[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 01/01: Fix scm_make_foreign_object_n.
From: |
Andy Wingo |
Subject: |
[Guile-commits] 01/01: Fix scm_make_foreign_object_n. |
Date: |
Fri, 14 Sep 2018 10:14:07 -0400 (EDT) |
wingo pushed a commit to branch lightning
in repository guile.
commit 4dba01501c8dd305d78c053830fcf1fe064814a6
Author: Andy Wingo <address@hidden>
Date: Fri Sep 14 16:11:48 2018 +0200
Fix scm_make_foreign_object_n.
* libguile/foreign-object.c (scm_make_foreign_object_n): Fix computation
of slot count; broken in 34b9f22ca.
---
libguile/foreign-object.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libguile/foreign-object.c b/libguile/foreign-object.c
index d1fa504..7e72c2f 100644
--- a/libguile/foreign-object.c
+++ b/libguile/foreign-object.c
@@ -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++)