The 'ahead' mechanism was not right

This commit is contained in:
ceriel 1987-11-09 11:45:39 +00:00
parent b6d6c4ee57
commit 7b317f79e2

View file

@ -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;