aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2011-07-14 14:46:32 -0700
committerPaul Eggert2011-07-14 14:46:32 -0700
commit3f86c085fa6eb34547ac04cf2be31f6cc3681e48 (patch)
tree6ad0e6f802501c736c1c6c7018fe065668137383 /src
parent1fd800e53d98ac4ea8ed560db81bd36545788b56 (diff)
parentad6042bb6f905a38c1c5b7a77981894355496e5c (diff)
downloademacs-3f86c085fa6eb34547ac04cf2be31f6cc3681e48.tar.gz
emacs-3f86c085fa6eb34547ac04cf2be31f6cc3681e48.zip
Merge from trunk.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog12
-rw-r--r--src/bidi.c4
-rw-r--r--src/indent.c2
-rw-r--r--src/xdisp.c2
4 files changed, 16 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index ce080f6b239..b683a7f55cd 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -180,6 +180,18 @@
180 Use EMACS_INT, not EMACS_UINT, for sizes. The code works equally 180 Use EMACS_INT, not EMACS_UINT, for sizes. The code works equally
181 well either way, and we prefer signed to unsigned. 181 well either way, and we prefer signed to unsigned.
182 182
1832011-07-14 Paul Eggert <eggert@cs.ucla.edu>
184
185 Fix minor problems found by static checking.
186 * bidi.c (bidi_cache_size): Now EMACS_INT, not size_t.
187 (elsz): Now a signed constant, not a size_t var. We prefer signed
188 types to unsigned, to avoid integer comparison confusion. Without
189 this change, GCC 4.6.1 with -Wunsafe-loop-optimizations complains
190 "cannot optimize loop, the loop counter may overflow", a symptom
191 of the confusion.
192 * indent.c (Fvertical_motion): Mark locals as initialized.
193 * xdisp.c (reseat_to_string): Fix pointer signedness issue.
194
1832011-07-14 Lars Magne Ingebrigtsen <larsi@gnus.org> 1952011-07-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
184 196
185 * data.c (Fcdr, Fcar): Revert the last change, since it didn't 197 * data.c (Fcdr, Fcar): Revert the last change, since it didn't
diff --git a/src/bidi.c b/src/bidi.c
index 22a5f0829cd..c83ee549923 100644
--- a/src/bidi.c
+++ b/src/bidi.c
@@ -299,8 +299,8 @@ bidi_copy_it (struct bidi_it *to, struct bidi_it *from)
299 299
300#define BIDI_CACHE_CHUNK 200 300#define BIDI_CACHE_CHUNK 200
301static struct bidi_it *bidi_cache; 301static struct bidi_it *bidi_cache;
302static size_t bidi_cache_size = 0; 302static EMACS_INT bidi_cache_size = 0;
303static size_t elsz = sizeof (struct bidi_it); 303enum { elsz = sizeof (struct bidi_it) };
304static EMACS_INT bidi_cache_idx; /* next unused cache slot */ 304static EMACS_INT bidi_cache_idx; /* next unused cache slot */
305static EMACS_INT bidi_cache_last_idx; /* slot of last cache hit */ 305static EMACS_INT bidi_cache_last_idx; /* slot of last cache hit */
306static EMACS_INT bidi_cache_start = 0; /* start of cache for this 306static EMACS_INT bidi_cache_start = 0; /* start of cache for this
diff --git a/src/indent.c b/src/indent.c
index c36b83daa02..aaeaaf591ef 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -1985,7 +1985,7 @@ whether or not it is currently displayed in some window. */)
1985 struct text_pos pt; 1985 struct text_pos pt;
1986 struct window *w; 1986 struct window *w;
1987 Lisp_Object old_buffer; 1987 Lisp_Object old_buffer;
1988 EMACS_INT old_charpos, old_bytepos; 1988 EMACS_INT old_charpos IF_LINT (= 0), old_bytepos IF_LINT (= 0);
1989 struct gcpro gcpro1, gcpro2, gcpro3; 1989 struct gcpro gcpro1, gcpro2, gcpro3;
1990 Lisp_Object lcols = Qnil; 1990 Lisp_Object lcols = Qnil;
1991 double cols IF_LINT (= 0); 1991 double cols IF_LINT (= 0);
diff --git a/src/xdisp.c b/src/xdisp.c
index 2aa70d29ff1..5285d945975 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -5890,7 +5890,7 @@ reseat_to_string (struct it *it, const char *s, Lisp_Object string,
5890 if (it->bidi_p) 5890 if (it->bidi_p)
5891 { 5891 {
5892 it->bidi_it.string.lstring = Qnil; 5892 it->bidi_it.string.lstring = Qnil;
5893 it->bidi_it.string.s = s; 5893 it->bidi_it.string.s = (const unsigned char *) s;
5894 it->bidi_it.string.schars = it->end_charpos; 5894 it->bidi_it.string.schars = it->end_charpos;
5895 it->bidi_it.string.bufpos = 0; 5895 it->bidi_it.string.bufpos = 0;
5896 it->bidi_it.string.from_disp_str = 0; 5896 it->bidi_it.string.from_disp_str = 0;