Mercurial > emacs
changeset 20450:8f05356e9dc3
(GROW_FAIL_STACK): Fix previous change:
update (fail_stack).size properly.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Tue, 09 Dec 1997 23:04:38 +0000 |
parents | fc965930c738 |
children | 93652fd3234d |
files | src/regex.c |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/regex.c Tue Dec 09 23:01:27 1997 +0000 +++ b/src/regex.c Tue Dec 09 23:04:38 1997 +0000 @@ -1217,9 +1217,11 @@ \ (fail_stack).stack == NULL \ ? 0 \ - : (MIN (re_max_failures * TYPICAL_FAILURE_SIZE, \ - ((fail_stack).size * sizeof (fail_stack_elt_t) \ - * FAIL_STACK_GROWTH_FACTOR)), \ + : ((fail_stack).size \ + = (MIN (re_max_failures * TYPICAL_FAILURE_SIZE, \ + ((fail_stack).size * sizeof (fail_stack_elt_t) \ + * FAIL_STACK_GROWTH_FACTOR)) \ + / sizeof (fail_stack_elt_t)), \ 1)))