# HG changeset patch # User Stefan Monnier # Date 981644843 0 # Node ID 0080b799e9019b565e5ddf98fa0c5ccc2d67d8ac # Parent f1b6a1c12e3830a80fc7a95fbf0e3967f42dc712 (w32_set_scroll_bar_thumb): Use `double' for `range' to avoid overflow. diff -r f1b6a1c12e38 -r 0080b799e901 src/ChangeLog --- 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 + + * 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 -r f1b6a1c12e38 -r 0080b799e901 src/w32term.c --- 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;