mirror of
https://github.com/lovell/sharp.git
synced 2025-07-12 12:00:14 +02:00
Silence a couple of MSVC type conversion warnings
This commit is contained in:
parent
1fec132dee
commit
e0f0baf164
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user