Mercurial > emacs
changeset 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 | 47d7fda8a609 |
children | 54381151027d |
files | src/xterm.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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); }