getBufferedAmount is unsigned now

This commit is contained in:
Alex Hultman 2020-07-30 15:05:22 +02:00
parent e037fa5512
commit f17b46f7c9

View File

@ -129,8 +129,8 @@ struct WebSocketWrapper {
Isolate *isolate = args.GetIsolate();
auto *ws = getWebSocket<SSL>(args);
if (ws) {
int bufferedAmount = ws->getBufferedAmount();
args.GetReturnValue().Set(Integer::New(isolate, bufferedAmount));
unsigned int bufferedAmount = ws->getBufferedAmount();
args.GetReturnValue().Set(Integer::NewFromUnsigned(isolate, bufferedAmount));
}
}