diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-06-14 21:09:39 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-06-14 21:09:39 -0700 |
commit | 312445a3169f9e168d2bdbdda8ed13995c27e76b (patch) | |
tree | 684e11f863bea177c9e8b8cc279d6dd4d322524f | |
parent | 7174c5812e3d9f8d32dabdd612487231403e20df (diff) | |
download | nasm-312445a3169f9e168d2bdbdda8ed13995c27e76b.tar.gz |
quote: fix termination condition for hexadecimal escapes
Fix reversed test for hexadecimal escape sequence termination.
-rw-r--r-- | quote.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |