From e0f0baf1646cc2b2d42abf4b5abc4157b96c12a4 Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Fri, 17 Nov 2017 20:10:10 +0000 Subject: [PATCH] Silence a couple of MSVC type conversion warnings --- src/pipeline.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pipeline.cc b/src/pipeline.cc index 58102ccd..4cb3944e 100644 --- a/src/pipeline.cc +++ b/src/pipeline.cc @@ -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(image.xoffset()); + baton->cropOffsetTop = static_cast(image.yoffset()); } } }