summaryrefslogtreecommitdiffstats
path: root/ffi.c
diff options
context:
space:
mode:
Diffstat (limited to 'ffi.c')
-rw-r--r--ffi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffi.c b/ffi.c
index 49f6303e..f872dcb8 100644
--- a/ffi.c
+++ b/ffi.c
@@ -4978,7 +4978,7 @@ val carray_replace(val carray, val values, val from, val to)
}
}
- for (; fn != tn; fn++, ptr += elsize) {
+ for (; fn < vn; fn++, ptr += elsize) {
val item = seq_geti(&item_iter);
eltft->put(eltft, item, ptr, self);
}