aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2011-09-24 09:31:55 -0700
committerPaul Eggert2011-09-24 09:31:55 -0700
commit25b4bfa0d11557a8041362ead77b8b1aff0f330d (patch)
tree8473c36bb70e190975cada2c75db3c7076ee87fc /src
parent6bf7006fa2efdb9d74451336335c1eeb833ddfb1 (diff)
parent9f985e85e1c6a0a1a2e161a5f3bd35b09a3b73e1 (diff)
downloademacs-25b4bfa0d11557a8041362ead77b8b1aff0f330d.tar.gz
emacs-25b4bfa0d11557a8041362ead77b8b1aff0f330d.zip
Fix minor problems found by static checking.
* xdisp.c (string_from_display_spec): Don't assume vecsize fits in int. * indent.c (Fvertical_motion): Fix == vs = typo.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/indent.c2
-rw-r--r--src/xdisp.c2
3 files changed, 8 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 4eac1d78db7..54e5a39b21e 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
12011-09-24 Paul Eggert <eggert@cs.ucla.edu>
2
3 Fix minor problems found by static checking.
4 * xdisp.c (string_from_display_spec): Don't assume vecsize fits in int.
5 * indent.c (Fvertical_motion): Fix == vs = typo.
6
12011-09-24 Eli Zaretskii <eliz@gnu.org> 72011-09-24 Eli Zaretskii <eliz@gnu.org>
2 8
3 * dispnew.c (syms_of_display) <redisplay-dont-pause>: Default 9 * dispnew.c (syms_of_display) <redisplay-dont-pause>: Default
diff --git a/src/indent.c b/src/indent.c
index e6629ef5811..a70b7971b96 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -2041,7 +2041,7 @@ whether or not it is currently displayed in some window. */)
2041 it_overshoot_count++; 2041 it_overshoot_count++;
2042 } 2042 }
2043 if (!it_overshoot_count) 2043 if (!it_overshoot_count)
2044 it_overshoot_count == -1; 2044 it_overshoot_count = -1;
2045 } 2045 }
2046 else 2046 else
2047 it_overshoot_count = 2047 it_overshoot_count =
diff --git a/src/xdisp.c b/src/xdisp.c
index 3f545fae248..a556236835c 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -1226,7 +1226,7 @@ string_from_display_spec (Lisp_Object spec)
1226 } 1226 }
1227 else if (VECTORP (spec)) 1227 else if (VECTORP (spec))
1228 { 1228 {
1229 int i; 1229 ptrdiff_t i;
1230 1230
1231 for (i = 0; i < ASIZE (spec); i++) 1231 for (i = 0; i < ASIZE (spec); i++)
1232 { 1232 {