Mercurial > emacs
diff src/xterm.c @ 3686:910ea1d66bfd
* xterm.c (XTset_vertical_scroll_bar): Use double type for
intermediate results in scaling.
| author | Jim Blandy <jimb@redhat.com> |
|---|---|
| date | Sat, 12 Jun 1993 17:00:45 +0000 |
| parents | 568c8391744d |
| children | 38e8dc7fd1e8 |
line wrap: on
line diff
--- a/src/xterm.c Sat Jun 12 16:58:31 1993 +0000 +++ b/src/xterm.c Sat Jun 12 17:00:45 1993 +0000 @@ -2135,8 +2135,8 @@ x_scroll_bar_set_handle (bar, 0, top_range, 0); else { - int start = (position * top_range) / whole; - int end = ((position + portion) * top_range) / whole; + int start = ((double) position * top_range) / whole; + int end = ((double) (position + portion) * top_range) / whole; x_scroll_bar_set_handle (bar, start, end, 0); }
