The 'ahead' mechanism was not right
This commit is contained in:
parent
620eb02a04
commit
6d78e62f81
@ -217,7 +217,11 @@ EM_getinstr(p)
|
||||
|
||||
EM_error = 0;
|
||||
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;
|
||||
}
|
||||
emhead = p;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user