summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-06-14 21:09:39 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-06-14 21:09:39 -0700
commit312445a3169f9e168d2bdbdda8ed13995c27e76b (patch)
tree684e11f863bea177c9e8b8cc279d6dd4d322524f
parent7174c5812e3d9f8d32dabdd612487231403e20df (diff)
downloadnasm-312445a3169f9e168d2bdbdda8ed13995c27e76b.tar.gz
quote: fix termination condition for hexadecimal escapes
Fix reversed test for hexadecimal escape sequence termination.
-rw-r--r--quote.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/quote.c b/quote.c
index 5a04d36b..dc880442 100644
--- a/quote.c
+++ b/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;
}