diff options
| author | Jim Blandy | 1993-06-12 17:00:45 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-06-12 17:00:45 +0000 |
| commit | 43f868f524a7ad7bed8b9e790996170fd7673eb2 (patch) | |
| tree | 3bfa7b86507ebe6aac4c884aa13ad86dad38ca53 /src | |
| parent | 188d6c4e6327a15419f89819e41c8f87c5494677 (diff) | |
| download | emacs-43f868f524a7ad7bed8b9e790996170fd7673eb2.tar.gz emacs-43f868f524a7ad7bed8b9e790996170fd7673eb2.zip | |
* xterm.c (XTset_vertical_scroll_bar): Use double type for
intermediate results in scaling.
Diffstat (limited to 'src')
| -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) | |||
| 2135 | x_scroll_bar_set_handle (bar, 0, top_range, 0); | 2135 | x_scroll_bar_set_handle (bar, 0, top_range, 0); |
| 2136 | else | 2136 | else |
| 2137 | { | 2137 | { |
| 2138 | int start = (position * top_range) / whole; | 2138 | int start = ((double) position * top_range) / whole; |
| 2139 | int end = ((position + portion) * top_range) / whole; | 2139 | int end = ((double) (position + portion) * top_range) / whole; |
| 2140 | 2140 | ||
| 2141 | x_scroll_bar_set_handle (bar, start, end, 0); | 2141 | x_scroll_bar_set_handle (bar, start, end, 0); |
| 2142 | } | 2142 | } |