# HG changeset patch # User Eli Zaretskii # Date 1192279645 0 # Node ID a8b8f12ca180fa43c3dcb091c9f209318dfb67df # Parent 96a92ff6e0deae092c09c9a26eda18e62c34c272 Replace `abs' with `eabs'. diff -r 96a92ff6e0de -r a8b8f12ca180 src/xdisp.c --- a/src/xdisp.c Sat Oct 13 12:46:49 2007 +0000 +++ b/src/xdisp.c Sat Oct 13 12:47:25 2007 +0000 @@ -12468,7 +12468,7 @@ minimum distance from the old window start. */ pos = it.current.pos; min_distance = INFINITY; - while ((distance = abs (CHARPOS (start_pos) - IT_CHARPOS (it))), + while ((distance = eabs (CHARPOS (start_pos) - IT_CHARPOS (it))), distance < min_distance) { min_distance = distance; @@ -20029,9 +20029,9 @@ } if (it->start_of_box_run_p && slice.x == 0) - it->pixel_width += abs (face->box_line_width); + it->pixel_width += eabs (face->box_line_width); if (it->end_of_box_run_p && slice.x + slice.width == img->width) - it->pixel_width += abs (face->box_line_width); + it->pixel_width += eabs (face->box_line_width); } take_vertical_position_into_account (it); @@ -22293,8 +22293,8 @@ goto found; } else if (best_glyph == NULL - || ((abs (g->charpos - pos) - < abs (best_glyph->charpos - pos)) + || ((eabs (g->charpos - pos) + < eabs (best_glyph->charpos - pos)) && (right_p ? g->charpos < pos : g->charpos > pos)))