summaryrefslogblamecommitdiff
path: root/devel/re2c/files/patch-ad
blob: 38d2b12c5ab868a9f228994b478cdb75b8e4de09 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                
--- actions.cc.old	Fri Feb  4 15:23:32 2000
+++ actions.cc	Fri Feb  4 15:24:14 2000
@@ -460,8 +460,9 @@
 
 void genCode(ostream& o, RegExp *re){
     CharSet cs;
+    uint j;
     memset(&cs, 0, sizeof(cs));
-    for(uint j = 0; j < nChars; ++j){
+    for(j = 0; j < nChars; ++j){
 	cs.rep[j] = &cs.ptn[0];
 	cs.ptn[j].nxt = &cs.ptn[j+1];
     }