Mercurial > emacs
diff src/w32term.c @ 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 | c2f95853d4c4 |
children | 205727d5d63c |
line wrap: on
line diff
--- 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;