# HG changeset patch # User William Astle # Date 1723146379 21600 # Node ID 1ede8f8621cfb7dda3f77223455b03129f8b6fe6 # Parent 10f8fc64481db93549c8fea35a26640800bd9a36 Actually treat "0b" as 0 since it matches the "b" suffix for binary numbers diff -r 10f8fc64481d -r 1ede8f8621cf lwasm/lwasm.c --- a/lwasm/lwasm.c Thu Aug 08 13:40:00 2024 -0600 +++ b/lwasm/lwasm.c Thu Aug 08 13:46:19 2024 -0600 @@ -649,8 +649,8 @@ if (**p != '0' && **p != '1') { - (*p) -= 2; - return NULL; + // in this case, we have 0 (suffix notation 0b) + return lw_expr_build(lw_expr_type_int, 0); } while (**p && (**p == '0' || **p == '1'))