fix compile error on FreeBSD

This commit is contained in:
rdb 2011-03-09 09:52:57 +00:00
parent 0e4535acf5
commit 0c7b5cae4f

View File

@ -291,12 +291,12 @@ resize(int new_x_size, int new_y_size) {
from_y0 = 0.0;
for (int to_y = 0; to_y < new_y_size; ++to_y) {
from_y1 = (to_y + 0.5) * y_scale;
from_y1 = min(from_y1, _y_size);
from_y1 = min(from_y1, (double) _y_size);
from_x0 = 0.0;
for (int to_x = 0; to_x < new_x_size; ++to_x) {
from_x1 = (to_x + 0.5) * x_scale;
from_x1 = min(from_x1, _x_size);
from_x1 = min(from_x1, (double) _x_size);
// Now the box from (from_x0, from_y0) - (from_x1, from_y1)
// but not including (from_x1, from_y1) maps to the pixel (to_x, to_y).