mirror of
https://github.com/lovell/sharp.git
synced 2025-07-13 12:20:13 +02:00
Ensure double to int cast introduced in 4d1a169 is static
This commit is contained in:
parent
f78ffdb9ce
commit
0a6d8b37ad
@ -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<int>(xresidual), static_cast<int>(yresidual));
|
||||
} else {
|
||||
// Floating point affine transformation
|
||||
vips::VInterpolate interpolator = vips::VInterpolate::new_from_name(baton->interpolator.data());
|
||||
|
Loading…
x
Reference in New Issue
Block a user