diff options
| author | Jim Blandy <jimb@redhat.com> | 1993-06-12 17:00:45 +0000 |
|---|---|---|
| committer | Jim Blandy <jimb@redhat.com> | 1993-06-12 17:00:45 +0000 |
| commit | 43f868f524a7ad7bed8b9e790996170fd7673eb2 (patch) | |
| tree | 3bfa7b86507ebe6aac4c884aa13ad86dad38ca53 | |
| parent | 188d6c4e6327a15419f89819e41c8f87c5494677 (diff) | |
| download | emacs-43f868f524a7ad7bed8b9e790996170fd7673eb2.tar.gz | |
* xterm.c (XTset_vertical_scroll_bar): Use double type for
intermediate results in scaling.
| -rw-r--r-- | src/xterm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xterm.c b/src/xterm.c index a9a10297bef..b5f87c46cc6 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -2135,8 +2135,8 @@ XTset_vertical_scroll_bar (window, portion, whole, position) 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); } |
