frontend/device.c, com_alter_common(), #3/11 rewrite while() loop

This commit is contained in:
rlar 2015-12-26 18:59:44 +01:00
parent c284161949
commit 80b76ebeb2
1 changed files with 3 additions and 1 deletions

View File

@ -1331,7 +1331,9 @@ com_alter_common(wordlist *wl, int do_model)
if (type == IF_REALVEC) {
list = TMALLOC(double, 1);
tmp = INPevaluate(&xsbuf, &error, 1);
while (error == 0) {
for (;;) {
if (error)
break;
/*printf(" returning vector value %g\n", tmp); */
i++;
list = TREALLOC(double, list, i);