diff --git a/package.json b/package.json index f0e58f8..ad94f1e 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "test": "make test" }, "dependencies": { - "nan": "~1.2.0" + "nan": "~1.5.1" }, "devDependencies": { "express": "3.0", diff --git a/src/Canvas.cc b/src/Canvas.cc index 01d3363..93f0329 100644 --- a/src/Canvas.cc +++ b/src/Canvas.cc @@ -353,7 +353,7 @@ streamPNG(void *c, const uint8_t *data, unsigned len) { Local argv[3] = { NanNew(NanNull()) , buf - , NanNew(len) }; + , NanNew(len) }; NanMakeCallback(NanGetCurrentContext()->Global(), closure->fn, 3, argv); return CAIRO_STATUS_SUCCESS; } diff --git a/src/JPEGStream.h b/src/JPEGStream.h index 5b1694b..95962e3 100644 --- a/src/JPEGStream.h +++ b/src/JPEGStream.h @@ -54,7 +54,7 @@ term_closure_destination(j_compress_ptr cinfo){ Local data_argv[3] = { NanNew(NanNull()) , NanNew(buf) - , NanNew(remaining) + , NanNew(remaining) }; NanMakeCallback(NanGetCurrentContext()->Global(), dest->closure->fn, 3, data_argv);