projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbbc28d
)
(GROW_FAIL_STACK): Fix test for stack size at max.
author
Karl Heuer
<kwzh@gnu.org>
Thu, 11 Dec 1997 07:21:05 +0000
(07:21 +0000)
committer
Karl Heuer
<kwzh@gnu.org>
Thu, 11 Dec 1997 07:21:05 +0000
(07:21 +0000)
regex.c
patch
|
blob
|
history
diff --git
a/regex.c
b/regex.c
index 6c79ba8503572097e51ce7cf2c8eae4e52dcb7ab..7efb9346a3567630422bb7510b45724f57ddbf11 100644
(file)
--- a/
regex.c
+++ b/
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 *) \