Add Appveyor config for Windows CI

Silence 'possible loss of data' warning
This commit is contained in:
Lovell Fuller
2015-04-20 19:00:22 +01:00
parent 9da87ce868
commit 8926ebc56c
2 changed files with 19 additions and 2 deletions

View File

@@ -459,8 +459,8 @@ class ResizeWorker : public NanAsyncWorker {
vips_object_local(hook, shrunk);
image = shrunk;
// Recalculate residual float based on dimensions of required vs shrunk images
double shrunkWidth = shrunk->Xsize;
double shrunkHeight = shrunk->Ysize;
int shrunkWidth = shrunk->Xsize;
int shrunkHeight = shrunk->Ysize;
if (rotation == Angle::D90 || rotation == Angle::D270) {
// Swap input output width and height when rotating by 90 or 270 degrees
int swap = shrunkWidth;