Mercurial > emacs
changeset 20455:aff2a2638ef4
(GROW_FAIL_STACK): Fix test for stack size at max.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Thu, 11 Dec 1997 07:21:05 +0000 |
parents | 7ddf71a26f4b |
children | 16c41f2c329d |
files | src/regex.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/regex.c Thu Dec 11 07:07:42 1997 +0000 +++ b/src/regex.c Thu Dec 11 07:21:05 1997 +0000 @@ -1205,7 +1205,8 @@ #define FAIL_STACK_GROWTH_FACTOR 4 #define GROW_FAIL_STACK(fail_stack) \ - ((fail_stack).size >= re_max_failures * TYPICAL_FAILURE_SIZE \ + (((fail_stack).size * sizeof (fail_stack_elt_t) \ + >= re_max_failures * TYPICAL_FAILURE_SIZE) \ ? 0 \ : ((fail_stack).stack \ = (fail_stack_elt_t *) \