Generated code for FOR-loops was wrong

This commit is contained in:
ceriel
1987-08-10 13:01:54 +00:00
parent e5af61151e
commit abf9c71fa9
5 changed files with 73 additions and 27 deletions

View File

@@ -123,7 +123,7 @@ GetString(upto)
}
*p++ = ch;
if (p - str->s_str == len) {
str->s_str = Srealloc(str->s_str,
str->s_str = Realloc(str->s_str,
(unsigned int) len + RSTRSIZE);
p = str->s_str + len;
len += RSTRSIZE;