Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
quic: remove redundant cast
  • Loading branch information
gengjiawen committed Jun 27, 2020
commit 725a1df7b84982c628647d72080848a3751ae55f
4 changes: 2 additions & 2 deletions src/quic/node_quic_session.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2896,8 +2896,8 @@ int QuicSession::OnReceiveCryptoData(
if (UNLIKELY(session->is_destroyed()))
return NGTCP2_ERR_CALLBACK_FAILURE;
QuicSession::Ngtcp2CallbackScope callback_scope(session);
return static_cast<int>(
session->crypto_context()->Receive(crypto_level, offset, data, datalen));
return session->crypto_context()->Receive(
crypto_level, offset, data, datalen);
}

// Called by ngtcp2 for both client and server connections
Expand Down