Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor int/Int typo in REcompile #73

Open
eggert opened this issue Dec 9, 2023 · 1 comment
Open

minor int/Int typo in REcompile #73

eggert opened this issue Dec 9, 2023 · 1 comment

Comments

@eggert
Copy link

eggert commented Dec 9, 2023

This is with mawk 1.3.4 20231126. Here is a fix. The problem occurs only with 2**31 or more repetitions so this is only a theoretical bug.

--- rexp.c.~1~	2023-07-30 13:48:27.000000000 -0700
+++ rexp.c	2023-12-09 14:38:26.102323420 -0800
@@ -235,7 +235,7 @@
 		TRACE(("RE_lex token %s\n", token_name(T_PLUS)));
 #endif
 	    } else {		/* n or more */
-		register int i;
+		register Int i;
 		/* copy 2 copies of m_ptr, use 2nd copy to replace
 		   the first copy that gets swallowed by concat */
 		MACHINE *result_mp = m_ptr;
@ThomasDickey
Copy link
Owner

thanks - will do

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants