Oops, Frederic caught an inline declaration that had snuck into the code.

This commit is contained in:
andy
2005-09-20 21:38:08 +00:00
parent 979d3da69c
commit 15d40fd64a

View File

@@ -15,8 +15,9 @@ void naTempSave(naContext c, naRef r)
int i;
if(!IS_OBJ(r)) return;
if(c->ntemps >= c->tempsz) {
struct naObj** newtemps;
c->tempsz *= 2;
struct naObj** newtemps = naAlloc(c->tempsz * sizeof(struct naObj*));
newtemps = naAlloc(c->tempsz * sizeof(struct naObj*));
for(i=0; i<c->ntemps; i++)
newtemps[i] = c->temps[i];
naFree(c->temps);