diff options
| author | Karl Heuer | 1997-12-11 07:21:05 +0000 |
|---|---|---|
| committer | Karl Heuer | 1997-12-11 07:21:05 +0000 |
| commit | eead07d624df493666a90a715d3252a61b246541 (patch) | |
| tree | 93295a46536303f2a00e69b3830612cd8752fc1a /src | |
| parent | 3ad08c112c2f7c4928da0838d8bc58fd9a6f67f4 (diff) | |
| download | emacs-eead07d624df493666a90a715d3252a61b246541.tar.gz emacs-eead07d624df493666a90a715d3252a61b246541.zip | |
(GROW_FAIL_STACK): Fix test for stack size at max.
Diffstat (limited to 'src')
| -rw-r--r-- | src/regex.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 | |||
| 1205 | #define FAIL_STACK_GROWTH_FACTOR 4 | 1205 | #define FAIL_STACK_GROWTH_FACTOR 4 |
| 1206 | 1206 | ||
| 1207 | #define GROW_FAIL_STACK(fail_stack) \ | 1207 | #define GROW_FAIL_STACK(fail_stack) \ |
| 1208 | ((fail_stack).size >= re_max_failures * TYPICAL_FAILURE_SIZE \ | 1208 | (((fail_stack).size * sizeof (fail_stack_elt_t) \ |
| 1209 | >= re_max_failures * TYPICAL_FAILURE_SIZE) \ | ||
| 1209 | ? 0 \ | 1210 | ? 0 \ |
| 1210 | : ((fail_stack).stack \ | 1211 | : ((fail_stack).stack \ |
| 1211 | = (fail_stack_elt_t *) \ | 1212 | = (fail_stack_elt_t *) \ |