From: Karl Heuer Date: Thu, 11 Dec 1997 07:21:05 +0000 (+0000) Subject: (GROW_FAIL_STACK): Fix test for stack size at max. X-Git-Tag: emacs-20.3~2619 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=eead07d624df493666a90a715d3252a61b246541;p=emacs.git (GROW_FAIL_STACK): Fix test for stack size at max. --- diff --git a/src/regex.c b/src/regex.c index 6c79ba85035..7efb9346a35 100644 --- a/src/regex.c +++ b/src/regex.c @@ -1205,7 +1205,8 @@ typedef struct #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 *) \