The 'ahead' mechanism was not right
This commit is contained in:
parent
b6d6c4ee57
commit
7b317f79e2
|
@ -217,7 +217,11 @@ EM_getinstr(p)
|
||||||
|
|
||||||
EM_error = 0;
|
EM_error = 0;
|
||||||
if (ahead) {
|
if (ahead) {
|
||||||
*p = aheads[--ahead];
|
register int i;
|
||||||
|
|
||||||
|
ahead--;
|
||||||
|
*p = aheads[0];
|
||||||
|
for (i = 0; i < ahead; i++) aheads[i] = aheads[i+1];
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
emhead = p;
|
emhead = p;
|
||||||
|
|
Loading…
Reference in a new issue