From: Stefan Monnier Date: Thu, 8 Feb 2001 15:07:23 +0000 (+0000) Subject: (w32_set_scroll_bar_thumb): Use `double' for `range' to avoid overflow. X-Git-Tag: emacs-pretest-21.0.98~91 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d8e675f595572a1c097c90b9df59e79d0e329218;p=emacs.git (w32_set_scroll_bar_thumb): Use `double' for `range' to avoid overflow. --- diff --git a/src/ChangeLog b/src/ChangeLog index 193babe4ba8..4830ddbb485 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2001-02-08 Stefan Monnier + + * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range' + to avoid overflow. + 2001-02-07 Kenichi Handa * charset.c (parse_str_to_multibyte): New function. diff --git a/src/w32term.c b/src/w32term.c index 6756cfa105f..50cc6529fd3 100644 --- a/src/w32term.c +++ b/src/w32term.c @@ -7331,7 +7331,7 @@ w32_set_scroll_bar_thumb (bar, portion, position, whole) 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;