Skip to content
Tcl Source Code View Ticket
Login

View Ticket

regexec.c: GCC -Wtype-limits warning

Closed / Fixedcd0d28eab9ae30c4dca4598bc92babd5f61ae991Created 363 days agoUpdated 360 days ago
Descriptionmarkdown2025-12-05 05:23:08

.ntree (regguts.h:399) was changed from int to size_t. Recent GCC says:

tcl90/generic/regexec.c:233:24: warning: comparison of unsigned expression in ‘>= 0’ is always true [-Wtype-limits]                                                          233 |     assert(v->g->ntree >= 0);
    |                        ^~
Referenced by2
jan.nijtmanswiki2025-12-07 21:38:13

Fixed [here]. Thanks for the report!

Log in (anonymous is fine) to add a comment.