(w32_set_scroll_bar_thumb): Use double' for range' to avoid overflow.

This commit is contained in:
Stefan Monnier 2001-02-08 15:07:23 +00:00
parent 1d279666f4
commit d8e675f595
2 changed files with 6 additions and 1 deletions

View file

@ -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.

View file

@ -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;