Commit 43f868f5 authored by Jim Blandy's avatar Jim Blandy
Browse files

* xterm.c (XTset_vertical_scroll_bar): Use double type for

	intermediate results in scaling.
parent 188d6c4e
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment