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()) {
|
||||
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 {
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue