1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-13 23:36:08 +00:00
freebsd-ports/devel/re2c/files/patch-ad
R. Imura f4001e4a49 Fix new compiler error in -current.
Submitted by:		Alexander Langer <alex@big.endian.de>
All no response from:	maintainer
2000-02-12 19:17:21 +00:00

14 lines
346 B
Plaintext

--- 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];
}