diff options
author | Eli Zaretskii <eliz@gnu.org> | 2012-07-05 18:20:12 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2012-07-05 18:20:12 +0300 |
commit | ea2ac79792ff8720f16ae72118e42e81c46d4653 (patch) | |
tree | 523d430d14e74e79ac0db13d0b250eea076b53d6 /src | |
parent | d6e7bf450c0a084927d533cb6913bc5f540a0032 (diff) | |
download | emacs-ea2ac79792ff8720f16ae72118e42e81c46d4653.tar.gz emacs-ea2ac79792ff8720f16ae72118e42e81c46d4653.tar.bz2 emacs-ea2ac79792ff8720f16ae72118e42e81c46d4653.zip |
Revert hscroll and min_hscroll to ptrdiff_t.
Fixes: debbugs:11857
Diffstat (limited to 'src')
-rw-r--r-- | src/ChangeLog | 3 | ||||
-rw-r--r-- | src/window.h | 4 | ||||
-rw-r--r-- | src/xdisp.c | 2 |
3 files changed, 3 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index d14c322cadf..6c3810c6bac 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -5,9 +5,6 @@ coordinates when window's hscroll is set to insanely large values. (Bug#11857) - * window.h (struct window) <hscroll, min_hscroll>: Change type to - 'int'. - 2012-07-05 Juanma Barranquero <lekktu@gmail.com> * makefile.w32-in ($(BLD)/dired.$(O), $(BLD)/fileio.$(O)): Fix typo. diff --git a/src/window.h b/src/window.h index 2684713eb6b..10cabed979b 100644 --- a/src/window.h +++ b/src/window.h @@ -238,11 +238,11 @@ struct window int sequence_number; /* Number of columns display within the window is scrolled to the left. */ - int hscroll; + ptrdiff_t hscroll; /* Minimum hscroll for automatic hscrolling. This is the value the user has set, by set-window-hscroll for example. */ - int min_hscroll; + ptrdiff_t min_hscroll; /* Displayed buffer's text modification events counter as of last time display completed. */ diff --git a/src/xdisp.c b/src/xdisp.c index e6ad6a0bd78..d24c05172b6 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -1258,7 +1258,7 @@ string_from_display_spec (Lisp_Object spec) static inline int window_hscroll_limited (struct window *w, struct frame *f) { - int window_hscroll = w->hscroll; + ptrdiff_t window_hscroll = w->hscroll; int window_text_width = window_box_width (w, TEXT_AREA); int colwidth = FRAME_COLUMN_WIDTH (f); |