diff options
Diffstat (limited to 'src/bidi.c')
| -rw-r--r-- | src/bidi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bidi.c b/src/bidi.c index bdf60001781..6dbfab37ea3 100644 --- a/src/bidi.c +++ b/src/bidi.c | |||
| @@ -566,7 +566,7 @@ bidi_copy_it (struct bidi_it *to, struct bidi_it *from) | |||
| 566 | RTL characters in the offending line of text. */ | 566 | RTL characters in the offending line of text. */ |
| 567 | /* Do we need to allow customization of this limit? */ | 567 | /* Do we need to allow customization of this limit? */ |
| 568 | #define BIDI_CACHE_MAX_ELTS_PER_SLOT 50000 | 568 | #define BIDI_CACHE_MAX_ELTS_PER_SLOT 50000 |
| 569 | verify (BIDI_CACHE_CHUNK < BIDI_CACHE_MAX_ELTS_PER_SLOT); | 569 | static_assert (BIDI_CACHE_CHUNK < BIDI_CACHE_MAX_ELTS_PER_SLOT); |
| 570 | static ptrdiff_t bidi_cache_max_elts = BIDI_CACHE_MAX_ELTS_PER_SLOT; | 570 | static ptrdiff_t bidi_cache_max_elts = BIDI_CACHE_MAX_ELTS_PER_SLOT; |
| 571 | static struct bidi_it *bidi_cache; | 571 | static struct bidi_it *bidi_cache; |
| 572 | static ptrdiff_t bidi_cache_size = 0; | 572 | static ptrdiff_t bidi_cache_size = 0; |
| @@ -2626,7 +2626,7 @@ bidi_find_bracket_pairs (struct bidi_it *bidi_it) | |||
| 2626 | ptrdiff_t pairing_pos; | 2626 | ptrdiff_t pairing_pos; |
| 2627 | int idx_at_entry = bidi_cache_idx; | 2627 | int idx_at_entry = bidi_cache_idx; |
| 2628 | 2628 | ||
| 2629 | verify (MAX_BPA_STACK >= 100); | 2629 | static_assert (MAX_BPA_STACK >= 100); |
| 2630 | bidi_copy_it (&saved_it, bidi_it); | 2630 | bidi_copy_it (&saved_it, bidi_it); |
| 2631 | /* bidi_cache_iterator_state refuses to cache on backward scans, | 2631 | /* bidi_cache_iterator_state refuses to cache on backward scans, |
| 2632 | and bidi_cache_fetch_state doesn't bring scan_dir from the | 2632 | and bidi_cache_fetch_state doesn't bring scan_dir from the |