regcomp.c: small efficiency gain