mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Add Appveyor config for Windows CI
Silence 'possible loss of data' warning
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user