fix bug in varadd(), thanks Ed Davis
This commit is contained in:
parent
cec21e6540
commit
4d656383d8
1 changed files with 2 additions and 1 deletions
|
@ -137,7 +137,8 @@ varadd(char *v, int glo, unsigned ctyp)
|
||||||
}
|
}
|
||||||
if (strcmp(varh[h].v, v) == 0)
|
if (strcmp(varh[h].v, v) == 0)
|
||||||
die("double definition");
|
die("double definition");
|
||||||
} while(++h != h0);
|
h = (h+1) % NVar;
|
||||||
|
} while(h != h0);
|
||||||
die("too many variables");
|
die("too many variables");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue