diff --git a/src/ib.cc b/src/ib.cc index 9fd16082..cdcfdd04 100644 --- a/src/ib.cc +++ b/src/ib.cc @@ -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(maxWrPerSend_); - this->sges = std::make_unique(maxWrPerSend_ * maxNumSgesPerWr_); + this->sges = std::make_unique((size_t)maxWrPerSend_ * maxNumSgesPerWr_); this->wcs = std::make_unique(maxCqPollNum_); numStagedWrs_ = 0; numStagedSges_ = 0;