Skip to content

Commit 8c8b3c1

Browse files
committed
fix remaining warning
1 parent d6af28c commit 8c8b3c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/agg/include/agg_image_filters.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ namespace agg
5959
{
6060
double x = double(i) / double(int(image_subpixel_scale));
6161
double y = filter.calc_weight(x);
62-
m_weight_array[pivot + i] =
63-
m_weight_array[pivot - i] = (int16)iround(y * image_filter_scale);
62+
m_weight_array[pivot + i] =
63+
m_weight_array[pivot - i] = (int16)iround(y * double(image_filter_scale));
6464
}
6565
unsigned end = (diameter() << image_subpixel_shift) - 1;
6666
m_weight_array[0] = m_weight_array[end];

0 commit comments

Comments
 (0)