This commit is contained in:
Luis Blanco 2018-01-28 12:41:50 +03:00
parent e0ad83dbe1
commit 528c58c005
2 changed files with 7 additions and 7 deletions

View File

@ -236,7 +236,7 @@ inline void *getImageData(v8::Local<v8::Value> arg) {
}
if (obj->IsArrayBufferView()) {
pixels = getArrayData<BYTE>(obj, NULL);
pixels = getArrayData<unsigned char>(obj, NULL);
} else if (obj->Has(JS_STR("data"))) {
pixels = node::Buffer::Data(Nan::Get(obj, JS_STR("data")).ToLocalChecked());
} else {

View File

@ -2,7 +2,7 @@
"name": "addon-tools-raub",
"author": "Luis Blanco <raubtierxxx@gmail.com>",
"description": "A set of extra tools for Node.js addons",
"version": "0.0.2",
"version": "0.0.3",
"main": "index.js",
"keywords": [
"node",