diff lwasm/lwasm.c @ 581:10f8fc64481d

Fix a slight error in cases where 0b is present but not followed by 0 or 1 This fixes an error where 0b is not followed by 0 or 1. In that case, the 0b prefix should not be consumed but the code which attempted to not consume it failed to actually update the parse pointer correctly.
author William Astle <lost@l-w.ca>
date Thu, 08 Aug 2024 13:40:00 -0600
parents 40edb7de3857
children 1ede8f8621cf
line wrap: on
line diff
--- a/lwasm/lwasm.c	Thu Aug 08 13:38:11 2024 -0600
+++ b/lwasm/lwasm.c	Thu Aug 08 13:40:00 2024 -0600
@@ -649,7 +649,7 @@
 
 		if (**p != '0' && **p != '1')
 		{
-			(*p)-2;
+			(*p) -= 2;
 			return NULL;
 		}