X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Futil.c;h=adf79a0a799b34288265f8b2eeff3aeda24c5242;hb=37d3828773e2f847bb1ed7522b0af4fb8e736fc8;hp=f51b95077edc1f16f6b78bb38e97972a21860316;hpb=3c5609fe910bae51ff885c8cfd4be879151e7489;p=sbcl.git diff --git a/src/runtime/util.c b/src/runtime/util.c index f51b950..adf79a0 100644 --- a/src/runtime/util.c +++ b/src/runtime/util.c @@ -40,24 +40,24 @@ voidacc_acc(struct voidacc *va, void* x) { /* Ensure that we have enough space, or die. */ if (va->n_used >= va->n_avail) { /* if we've run out of space */ - /* We need to allocate more space. */ + /* We need to allocate more space. */ int new_n_avail = 1 + 2 * va->n_avail; void** new_result = (void**)calloc(sizeof(void*), new_n_avail); int i; - if (!new_result) { - return 1; - } + if (!new_result) { + return 1; + } /* Copy old result into new space. */ - for (i = va->n_used; --i >= 0; ) { - new_result[i] = va->result[i]; - } - free(va->result); - va->result = new_result; - va->n_avail = new_n_avail; + for (i = va->n_used; --i >= 0; ) { + new_result[i] = va->result[i]; + } + free(va->result); + va->result = new_result; + va->n_avail = new_n_avail; } - /* If we get to this point, we have enough space to store x. - * + /* If we get to this point, we have enough space to store x. + * * Note that since we cleverly counted the 0 as part of the space * used, now we need to subtract one to get the correct offset to * write into.:-| */