(w32_set_scroll_bar_thumb): Use double' for
range' to avoid overflow.
This commit is contained in:
parent
1d279666f4
commit
d8e675f595
2 changed files with 6 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue