Silence a couple of MSVC type conversion warnings

This commit is contained in:
Lovell Fuller 2017-11-17 20:10:10 +00:00
parent 1fec132dee
commit e0f0baf164

View File

@ -472,8 +472,8 @@ class PipelineWorker : public Nan::AsyncWorker {
image = image.smartcrop(baton->width, baton->height, VImage::option()
->set("interesting", baton->crop == 16 ? VIPS_INTERESTING_ENTROPY : VIPS_INTERESTING_ATTENTION));
baton->hasCropOffset = true;
baton->cropOffsetLeft = image.xoffset();
baton->cropOffsetTop = image.yoffset();
baton->cropOffsetLeft = static_cast<int>(image.xoffset());
baton->cropOffsetTop = static_cast<int>(image.yoffset());
}
}
}