Fixing "vector: invalid subscript" issue.

This commit is contained in:
Nicolas Noble 2019-11-05 15:57:31 -08:00 committed by GitHub
parent 976468ccb6
commit 307f022fa2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -685,7 +685,7 @@ NAN_METHOD(Call::StartBatch) {
}
Callback *callback = new Callback(callback_func);
grpc_call_error error = grpc_call_start_batch(
call->wrapped_call, &ops[0], nops,
call->wrapped_call, ops.data(), nops,
new struct tag(callback, op_vector.release(), call, info.This()), NULL);
if (error != GRPC_CALL_OK) {
return Nan::ThrowError(nanErrorWithCode("startBatch failed", error));