diff --git a/src/HttpResponseWrapper.h b/src/HttpResponseWrapper.h index 42183c8..22a9c7a 100644 --- a/src/HttpResponseWrapper.h +++ b/src/HttpResponseWrapper.h @@ -152,7 +152,7 @@ struct HttpResponseWrapper { /* This thing perfectly fits in with unique_function, and will Reset on destructor */ UniquePersistent p(isolate, Local::Cast(args[0])); - res->onWritable([p = std::move(p), isolate](int offset) -> bool { + res->onWritable([p = std::move(p), isolate](size_t offset) -> bool { HandleScope hs(isolate); Local argv[] = {Number::New(isolate, offset)};