summaryrefslogtreecommitdiff
path: root/src/term.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2010-09-25 08:31:15 -0400
committerEli Zaretskii <eliz@gnu.org>2010-09-25 08:31:15 -0400
commitf877c546db4d53d4076715323bd151ab6c3347a5 (patch)
treeeeadbbe340b082d517dacc33290e93f756069d7c /src/term.c
parent40b1a3a937512ff35884df2e8e19c3feed9f2688 (diff)
downloademacs-f877c546db4d53d4076715323bd151ab6c3347a5.tar.gz
Fix int/EMACS_INT use in process.c and term.c.
term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT for buffer positions. process.c (read_process_output, send_process) (Fprocess_send_region, status_notify): Use EMACS_INT for buffer and string positions and size.
Diffstat (limited to 'src/term.c')
-rw-r--r--src/term.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/term.c b/src/term.c
index 2deca1014e8..1b4484470e0 100644
--- a/src/term.c
+++ b/src/term.c
@@ -2618,9 +2618,10 @@ term_clear_mouse_face (void)
If POS is after end of W, return end of last line in W.
- taken from msdos.c */
static int
-fast_find_position (struct window *w, int pos, int *hpos, int *vpos)
+fast_find_position (struct window *w, EMACS_INT pos, int *hpos, int *vpos)
{
- int i, lastcol, line_start_position, maybe_next_line_p = 0;
+ int i, lastcol, maybe_next_line_p = 0;
+ EMACS_INT line_start_position;
int yb = window_text_bottom_y (w);
struct glyph_row *row = MATRIX_ROW (w->current_matrix, 0), *best_row = row;
@@ -2658,7 +2659,7 @@ fast_find_position (struct window *w, int pos, int *hpos, int *vpos)
for (i = 0; i < row->used[TEXT_AREA]; i++)
{
struct glyph *glyph = row->glyphs[TEXT_AREA] + i;
- int charpos;
+ EMACS_INT charpos;
charpos = glyph->charpos;
if (charpos == pos)
@@ -2719,7 +2720,8 @@ term_mouse_highlight (struct frame *f, int x, int y)
&& XFASTINT (w->last_modified) == BUF_MODIFF (b)
&& XFASTINT (w->last_overlay_modified) == BUF_OVERLAY_MODIFF (b))
{
- int pos, i, nrows = w->current_matrix->nrows;
+ int i, nrows = w->current_matrix->nrows;
+ EMACS_INT pos;
struct glyph_row *row;
struct glyph *glyph;
@@ -2763,7 +2765,8 @@ term_mouse_highlight (struct frame *f, int x, int y)
/* Check for mouse-face. */
{
Lisp_Object mouse_face, overlay, position, *overlay_vec;
- int noverlays, obegv, ozv;
+ int noverlays;
+ EMACS_INT obegv, ozv;
struct buffer *obuf;
/* If we get an out-of-range value, return now; avoid an error. */