getBufferedAmount is unsigned now
This commit is contained in:
parent
e037fa5512
commit
f17b46f7c9
1 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue