aboutsummaryrefslogtreecommitdiffstats
path: root/src/cm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cm.c')
-rw-r--r--src/cm.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/cm.c b/src/cm.c
index eda6430bafa..481ac15e435 100644
--- a/src/cm.c
+++ b/src/cm.c
@@ -1,5 +1,5 @@
1/* Cursor motion subroutines for GNU Emacs. 1/* Cursor motion subroutines for GNU Emacs.
2 Copyright (C) 1985, 1995, 2001-2012 Free Software Foundation, Inc. 2 Copyright (C) 1985, 1995, 2001-2013 Free Software Foundation, Inc.
3 based primarily on public domain code written by Chris Torek 3 based primarily on public domain code written by Chris Torek
4 4
5This file is part of GNU Emacs. 5This file is part of GNU Emacs.
@@ -28,8 +28,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
28#include "termchar.h" 28#include "termchar.h"
29#include "tparam.h" 29#include "tparam.h"
30 30
31#define BIG 9999 /* 9999 good on VAXen. For 16 bit machines 31#define BIG 9999 /* Good on 32-bit hosts. */
32 use about 2000.... */
33 32
34int cost; /* sums up costs */ 33int cost; /* sums up costs */
35 34
@@ -215,7 +214,7 @@ calccost (struct tty_display_info *tty,
215 if (doit) 214 if (doit)
216 do 215 do
217 emacs_tputs (tty, p, 1, cmputc); 216 emacs_tputs (tty, p, 1, cmputc);
218 while (0 < --deltay); 217 while (--deltay > 0);
219x: 218x:
220 if ((deltax = dstx - srcx) == 0) 219 if ((deltax = dstx - srcx) == 0)
221 goto done; 220 goto done;
@@ -298,7 +297,7 @@ fail:
298 if (doit) 297 if (doit)
299 do 298 do
300 emacs_tputs (tty, p, 1, cmputc); 299 emacs_tputs (tty, p, 1, cmputc);
301 while (0 < --deltax); 300 while (--deltax > 0);
302done: 301done:
303 return totalcost; 302 return totalcost;
304} 303}