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()); } } }