Mercurial > hg > octave-lyh > gnulib-hg
changeset 1157:5aa89bba935d
(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 | 8e1cbb305ddc |
children | 282562802f46 |
files | regex.c |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/regex.c +++ b/regex.c @@ -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)))