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.
This commit is contained in:
Paul Eggert 2011-09-24 09:31:55 -07:00
commit 25b4bfa0d1
3 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2011-09-24 Paul Eggert <eggert@cs.ucla.edu>
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.
2011-09-24 Eli Zaretskii <eliz@gnu.org>
* dispnew.c (syms_of_display) <redisplay-dont-pause>: Default

View file

@ -2041,7 +2041,7 @@ whether or not it is currently displayed in some window. */)
it_overshoot_count++;
}
if (!it_overshoot_count)
it_overshoot_count == -1;
it_overshoot_count = -1;
}
else
it_overshoot_count =

View file

@ -1226,7 +1226,7 @@ string_from_display_spec (Lisp_Object spec)
}
else if (VECTORP (spec))
{
int i;
ptrdiff_t i;
for (i = 0; i < ASIZE (spec); i++)
{