]> git.eshelyaron.com Git - emacs.git/commitdiff
(w32_set_scroll_bar_thumb): Use `double' for `range' to avoid overflow.
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 8 Feb 2001 15:07:23 +0000 (15:07 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 8 Feb 2001 15:07:23 +0000 (15:07 +0000)
src/ChangeLog
src/w32term.c

index 193babe4ba86172955c3bd9dec4d18b7f9971254..4830ddbb4858bf5ada015866a679aaefe6d1fa15 100644 (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.
index 6756cfa105f9aebf343ee40db8539c9e40d10f34..50cc6529fd34895e223cbb1e21bef9d2b92340a9 100644 (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;