Mercurial > emacs
changeset 35984:0080b799e901
(w32_set_scroll_bar_thumb): Use `double' for `range' to avoid overflow.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Thu, 08 Feb 2001 15:07:23 +0000 |
parents | f1b6a1c12e38 |
children | b9c371244b90 |
files | src/ChangeLog src/w32term.c |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog Thu Feb 08 11:40:23 2001 +0000 +++ b/src/ChangeLog Thu Feb 08 15:07:23 2001 +0000 @@ -1,3 +1,8 @@ +2001-02-08 Stefan Monnier <monnier@cs.yale.edu> + + * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range' + to avoid overflow. + 2001-02-07 Kenichi Handa <handa@etl.go.jp> * charset.c (parse_str_to_multibyte): New function.
--- a/src/w32term.c Thu Feb 08 11:40:23 2001 +0000 +++ b/src/w32term.c Thu Feb 08 15:07:23 2001 +0000 @@ -7331,7 +7331,7 @@ int portion, position, whole; { Window w = SCROLL_BAR_W32_WINDOW (bar); - int range = VERTICAL_SCROLL_BAR_TOP_RANGE (f, XINT (bar->height)); + double range = VERTICAL_SCROLL_BAR_TOP_RANGE (f, XINT (bar->height)); int sb_page, sb_pos; BOOL draggingp = !NILP (bar->dragging) ? TRUE : FALSE;