diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-03-29 09:41:05 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-03-29 09:41:05 (GMT) |
commit | 554f692cc41dac694d2cb30ec90b94b9f59df484 (patch) | |
tree | 00d19ed085b41bd06adcdfedea3227b1e930a59e /generic/regcomp.c | |
parent | 3cd9927e9bf6f937e8cd932675df66c01011c8ed (diff) | |
download | tcl-554f692cc41dac694d2cb30ec90b94b9f59df484.zip tcl-554f692cc41dac694d2cb30ec90b94b9f59df484.tar.gz tcl-554f692cc41dac694d2cb30ec90b94b9f59df484.tar.bz2 |
Change regexp C API to handle indexes > 2G. New TIP upcoming.
Diffstat (limited to 'generic/regcomp.c')
-rw-r--r-- | generic/regcomp.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/generic/regcomp.c b/generic/regcomp.c index 47f06c8..9bf862c 100644 --- a/generic/regcomp.c +++ b/generic/regcomp.c @@ -338,7 +338,6 @@ compile( v->spaceused = 0; re->re_magic = REMAGIC; re->re_info = 0; /* bits get set during parse */ - re->re_csize = sizeof(chr); re->re_guts = NULL; re->re_fns = (void*)(&functions); @@ -2085,8 +2084,8 @@ dump( } fprintf(f, "\n\n\n========= DUMP ==========\n"); - fprintf(f, "nsub %d, info 0%lo, csize %d, ntree %d\n", - (int) re->re_nsub, re->re_info, re->re_csize, g->ntree); + fprintf(f, "nsub %" TCL_Z_MODIFIER "d, info 0%lo, ntree %d\n", + re->re_nsub, re->re_info, g->ntree); dumpcolors(&g->cmap, f); if (!NULLCNFA(g->search)) { |