From 5840dab93f6ca1beeba8710709d510f8e7041973 Mon Sep 17 00:00:00 2001 From: Alex Hultman Date: Thu, 30 Jul 2020 15:39:27 +0200 Subject: [PATCH] onWritable takes size_t --- src/HttpResponseWrapper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)};