Skip to content

Commit

Permalink
resolve a code scanning issue
Browse files Browse the repository at this point in the history
  • Loading branch information
chhwang committed Sep 6, 2023
1 parent e48f942 commit d38df98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ib.cc
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ IbQp::IbQp(ibv_context* ctx, ibv_pd* pd, int port, int maxCqSize, int maxCqPollN
}
this->qp = _qp;
this->wrs = std::make_unique<ibv_send_wr[]>(maxWrPerSend_);
this->sges = std::make_unique<ibv_sge[]>(maxWrPerSend_ * maxNumSgesPerWr_);
this->sges = std::make_unique<ibv_sge[]>((size_t)maxWrPerSend_ * maxNumSgesPerWr_);
this->wcs = std::make_unique<ibv_wc[]>(maxCqPollNum_);
numStagedWrs_ = 0;
numStagedSges_ = 0;
Expand Down

0 comments on commit d38df98

Please sign in to comment.