diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2001-02-08 15:07:23 +0000 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2001-02-08 15:07:23 +0000 |
commit | d8e675f595572a1c097c90b9df59e79d0e329218 (patch) | |
tree | c06f7db7f0fc45a2ceb48ade710c701425629ee0 | |
parent | 1d279666f4f5f1148111510982c7802a29db775c (diff) |
(w32_set_scroll_bar_thumb): Use `double' for `range' to avoid overflow.
-rw-r--r-- | src/ChangeLog | 5 | ||||
-rw-r--r-- | src/w32term.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 193babe4ba..4830ddbb48 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -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. diff --git a/src/w32term.c b/src/w32term.c index 6756cfa105..50cc6529fd 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; |