mirror of
https://github.com/lovell/sharp.git
synced 2025-07-12 20:10:13 +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()
|
image = image.smartcrop(baton->width, baton->height, VImage::option()
|
||||||
->set("interesting", baton->crop == 16 ? VIPS_INTERESTING_ENTROPY : VIPS_INTERESTING_ATTENTION));
|
->set("interesting", baton->crop == 16 ? VIPS_INTERESTING_ENTROPY : VIPS_INTERESTING_ATTENTION));
|
||||||
baton->hasCropOffset = true;
|
baton->hasCropOffset = true;
|
||||||
baton->cropOffsetLeft = image.xoffset();
|
baton->cropOffsetLeft = static_cast<int>(image.xoffset());
|
||||||
baton->cropOffsetTop = image.yoffset();
|
baton->cropOffsetTop = static_cast<int>(image.yoffset());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user