From 0a6d8b37adce2d034dd591224514b845b3c9d763 Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Sun, 21 May 2017 19:05:56 +0100 Subject: [PATCH] Ensure double to int cast introduced in 4d1a169 is static --- src/pipeline.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipeline.cc b/src/pipeline.cc index 706315b4..9ce53379 100644 --- a/src/pipeline.cc +++ b/src/pipeline.cc @@ -434,7 +434,7 @@ class PipelineWorker : public Nan::AsyncWorker { if (yresidual > 1.0 || xresidual > 1.0) { if (trunc(xresidual) == xresidual && trunc(yresidual) == yresidual && baton->interpolator == "nearest") { // Fast, integral nearest neighbour enlargement - image = image.zoom(xresidual, yresidual); + image = image.zoom(static_cast(xresidual), static_cast(yresidual)); } else { // Floating point affine transformation vips::VInterpolate interpolator = vips::VInterpolate::new_from_name(baton->interpolator.data());