# HG changeset patch # User William Astle # Date 1613060716 25200 # Node ID c33b4abff860e67c3c37c2fc962839332d3b23b1 # Parent 39b75a25044b177f0d3f9d67b03ceaf0e87efaa9 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. diff -r 39b75a25044b -r c33b4abff860 lwasm/pseudo.c --- 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; }