Mercurial > hg > index.cgi
diff lwasm/pseudo.c @ 516:c33b4abff860
Fix bug related to parsing \x sequences under pragma cstrings
Fix the test for lower case letter digits to test for the full range of hex
digit values instead of just 0 to 9 when deciding to apply the correction
factor for lower case.
author | William Astle <lost@l-w.ca> |
---|---|
date | Thu, 11 Feb 2021 09:25:16 -0700 |
parents | 74d0c394666e |
children | 724bcc4508bc |
line wrap: on
line diff
--- a/lwasm/pseudo.c Tue Jan 19 19:07:19 2021 -0700 +++ b/lwasm/pseudo.c Thu Feb 11 09:25:16 2021 -0700 @@ -369,7 +369,7 @@ wch = **p - 0x30; if (wch > 9) wch -= 7; - if (wch > 9) + if (wch > 15) wch -= 32; (*p)++; } @@ -379,7 +379,7 @@ i = **p - 0x30; if (i > 9) i -= 7; - if (i > 9) + if (i > 15) i -= 32; wch = wch * 16 + i; }