Issue #422 - Fix compilation error

This commit is contained in:
Justin Ethier 2020-11-17 22:45:40 -05:00
parent 1803a7339a
commit e8ef39c76b
2 changed files with 8 additions and 1 deletions

View file

@ -1,5 +1,11 @@
# Changelog # Changelog
## 0.23 - TBD
Bug Fixes
- Fixed compilation error in `runtime.c` on Raspberry Pi / ARM.
## 0.22 - November 3, 2020 ## 0.22 - November 3, 2020
Features Features

View file

@ -6607,6 +6607,7 @@ void *gc_alloc_pair(gc_thread_data *data, object head, object tail)
*/ */
void *Cyc_init_thread(object thread_and_thunk, int argc, object *args) void *Cyc_init_thread(object thread_and_thunk, int argc, object *args)
{ {
int i;
vector_type *t; vector_type *t;
c_opaque_type *o; c_opaque_type *o;
object op, parent, child, tmp; object op, parent, child, tmp;
@ -6636,7 +6637,7 @@ void *Cyc_init_thread(object thread_and_thunk, int argc, object *args)
if (argc > 0) { if (argc > 0) {
thd->gc_num_args = argc + 1; thd->gc_num_args = argc + 1;
for (int i = 0; i < argc; i++) { for (i = 0; i < argc; i++) {
thd->gc_args[i + 1] = args[i]; thd->gc_args[i + 1] = args[i];
} }
} }