fix BYTE
This commit is contained in:
parent
e0ad83dbe1
commit
528c58c005
|
@ -236,7 +236,7 @@ inline void *getImageData(v8::Local<v8::Value> arg) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (obj->IsArrayBufferView()) {
|
if (obj->IsArrayBufferView()) {
|
||||||
pixels = getArrayData<BYTE>(obj, NULL);
|
pixels = getArrayData<unsigned char>(obj, NULL);
|
||||||
} else if (obj->Has(JS_STR("data"))) {
|
} else if (obj->Has(JS_STR("data"))) {
|
||||||
pixels = node::Buffer::Data(Nan::Get(obj, JS_STR("data")).ToLocalChecked());
|
pixels = node::Buffer::Data(Nan::Get(obj, JS_STR("data")).ToLocalChecked());
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "addon-tools-raub",
|
"name": "addon-tools-raub",
|
||||||
"author": "Luis Blanco <raubtierxxx@gmail.com>",
|
"author": "Luis Blanco <raubtierxxx@gmail.com>",
|
||||||
"description": "A set of extra tools for Node.js addons",
|
"description": "A set of extra tools for Node.js addons",
|
||||||
"version": "0.0.2",
|
"version": "0.0.3",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"node",
|
"node",
|
||||||
|
|
Loading…
Reference in New Issue