From 4db8ad4eca1b6537de1b554ad51d154eb0f6bc7f Mon Sep 17 00:00:00 2001 From: showhand Date: Thu, 23 May 2019 15:44:01 +0800 Subject: [PATCH] fix issue https://github.com/elad/node-imagemagick-native/issues/168 this compile error is caused by imagemagick header definenation changes --- src/imagemagick.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/imagemagick.cc b/src/imagemagick.cc index 383247a..85111b0 100644 --- a/src/imagemagick.cc +++ b/src/imagemagick.cc @@ -907,10 +907,10 @@ NAN_METHOD(GetConstPixels) { Magick::PixelPacket pixel = pixels[ i ]; Local color = Nan::New(); - color->Set(Nan::New("red").ToLocalChecked(), Nan::New(pixel.red)); - color->Set(Nan::New("green").ToLocalChecked(), Nan::New(pixel.green)); - color->Set(Nan::New("blue").ToLocalChecked(), Nan::New(pixel.blue)); - color->Set(Nan::New("opacity").ToLocalChecked(), Nan::New(pixel.opacity)); + color->Set(Nan::New("red").ToLocalChecked(), Nan::New(pixel.red)); + color->Set(Nan::New("green").ToLocalChecked(), Nan::New(pixel.green)); + color->Set(Nan::New("blue").ToLocalChecked(), Nan::New(pixel.blue)); + color->Set(Nan::New("opacity").ToLocalChecked(), Nan::New(pixel.opacity)); out->Set(i, color); }