aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ChangeLog5
-rw-r--r--src/bidi.c12
2 files changed, 11 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 8c73cf357d9..83295bc5f09 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,10 @@
12010-09-24 Eli Zaretskii <eliz@gnu.org> 12010-09-24 Eli Zaretskii <eliz@gnu.org>
2 2
3 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
4 positions.
5 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
6 positions.
7
3 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions. 8 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
4 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string 9 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
5 length. 10 length.
diff --git a/src/bidi.c b/src/bidi.c
index 224ed552a6d..b7c6fdc2ddd 100644
--- a/src/bidi.c
+++ b/src/bidi.c
@@ -79,10 +79,10 @@ static Lisp_Object bidi_type_table, bidi_mirror_table;
79 79
80/* What we need to know about the current paragraph. */ 80/* What we need to know about the current paragraph. */
81struct bidi_paragraph_info { 81struct bidi_paragraph_info {
82 int start_bytepos; /* byte position where it begins */ 82 EMACS_INT start_bytepos; /* byte position where it begins */
83 int end_bytepos; /* byte position where it ends */ 83 EMACS_INT end_bytepos; /* byte position where it ends */
84 int embedding_level; /* its basic embedding level */ 84 int embedding_level; /* its basic embedding level */
85 bidi_dir_t base_dir; /* its base direction */ 85 bidi_dir_t base_dir; /* its base direction */
86}; 86};
87 87
88/* Data type for describing the bidirectional character categories. */ 88/* Data type for describing the bidirectional character categories. */
@@ -313,7 +313,7 @@ bidi_cache_fetch_state (int idx, struct bidi_it *bidi_it)
313 resolved levels in cached states. DIR, if non-zero, means search 313 resolved levels in cached states. DIR, if non-zero, means search
314 in that direction from the last cache hit. */ 314 in that direction from the last cache hit. */
315static INLINE int 315static INLINE int
316bidi_cache_search (int charpos, int level, int dir) 316bidi_cache_search (EMACS_INT charpos, int level, int dir)
317{ 317{
318 int i, i_start; 318 int i, i_start;
319 319
@@ -462,7 +462,7 @@ bidi_cache_iterator_state (struct bidi_it *bidi_it, int resolved)
462} 462}
463 463
464static INLINE bidi_type_t 464static INLINE bidi_type_t
465bidi_cache_find (int charpos, int level, struct bidi_it *bidi_it) 465bidi_cache_find (EMACS_INT charpos, int level, struct bidi_it *bidi_it)
466{ 466{
467 int i = bidi_cache_search (charpos, level, bidi_it->scan_dir); 467 int i = bidi_cache_search (charpos, level, bidi_it->scan_dir);
468 468