summaryrefslogtreecommitdiff
path: root/gas/app.c
diff options
context:
space:
mode:
authorSergey Belyashov <sergey.belyashov@gmail.com>2022-01-17 13:00:17 +0000
committerNick Clifton <nickc@redhat.com>2022-01-17 13:00:17 +0000
commit1adce770ea443ec73c8af29618c504495893d0b8 (patch)
tree753d3fe428dbbe3025844510581d8fbe8e4cb95a /gas/app.c
parent8bf10e2e77f3b4e19fe01e95d25c0c2caf7eef3b (diff)
Fix Z80 assembly failure.
PR 28762 * app.c (do_scrub_chars): Correct handling when the symbol is not 'af'.
Diffstat (limited to 'gas/app.c')
-rw-r--r--gas/app.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gas/app.c b/gas/app.c
index c798b6a12e..dd96b410ba 100644
--- a/gas/app.c
+++ b/gas/app.c
@@ -748,6 +748,8 @@ do_scrub_chars (size_t (*get) (char *, size_t), char *tostart, size_t tolen)
}
else
{
+ if (ch != EOF)
+ UNGET (ch);
state = 9;
break;
}