hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit ef3d2b2d0fce8450e4f91ab5166558c013c0c5fc
parent fe60d325a9faeab3132aa9c704d99eedf543fbb3
Author: Sebastian <sebastian@sebsite.pw>
Date:   Tue, 23 Jan 2024 15:58:28 -0500

regex: use types::SIZE_MAX instead of 9999999

Signed-off-by: Sebastian <sebastian@sebsite.pw>

Diffstat:
Mregex/regex.ha | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/regex/regex.ha b/regex/regex.ha @@ -299,7 +299,7 @@ export fn compile(expr: str) (regex | error) = { curr_alt_jump_idx = -1; }; case '|' => - append(insts, 9999999: inst_jump); + append(insts, types::SIZE_MAX: inst_jump); const origin = find_last_groupstart(&insts)? + 1; const newinst = (len(insts) + 1): inst_split; insert(insts[origin], newinst);