From d38df98326a37edbdb28ea335a8343998c24840e Mon Sep 17 00:00:00 2001 From: Changho Hwang Date: Wed, 6 Sep 2023 17:03:04 +0000 Subject: [PATCH] resolve a code scanning issue --- src/ib.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;