mirror of
https://github.com/netwide-assembler/nasm
synced 2026-08-26 16:23:04 -04:00
quote: fix termination condition for hexadecimal escapes
Fix reversed test for hexadecimal escape sequence termination.
This commit is contained in:
parent
7174c5812e
commit
312445a316
1 changed files with 1 additions and 1 deletions
2
quote.c
2
quote.c
|
|
@ -319,7 +319,7 @@ size_t nasm_unquote(char *str, char **ep)
|
|||
(c >= 'A' && c <= 'F') ||
|
||||
(c >= 'a' && c <= 'f')) {
|
||||
nval = (nval << 4) + numvalue(c);
|
||||
if (--ndig) {
|
||||
if (!--ndig) {
|
||||
*q++ = nval;
|
||||
state = st_start;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue