From b26c2ae8c12911ff1fc6999ab451e60013192c29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=9B=A7=E5=9B=A7?= Date: Tue, 18 Apr 2023 23:54:38 -0400 Subject: [PATCH] Fix macOS compilation issue --- src/processor/operator/shortestpath/scan_bfs_level.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/processor/operator/shortestpath/scan_bfs_level.cpp b/src/processor/operator/shortestpath/scan_bfs_level.cpp index 649110395b..980e092739 100644 --- a/src/processor/operator/shortestpath/scan_bfs_level.cpp +++ b/src/processor/operator/shortestpath/scan_bfs_level.cpp @@ -14,7 +14,7 @@ BFSLevelMorsel SSSPMorsel::getBFSLevelMorsel() { return BFSLevelMorsel(bfsMorselNextStartIdx, 0 /* bfsLevelMorsel size */); } auto bfsLevelMorselSize = std::min( - DEFAULT_VECTOR_CAPACITY, curBFSLevel->bfsLevelNodes.size() - bfsMorselNextStartIdx); + (size_t)DEFAULT_VECTOR_CAPACITY, curBFSLevel->bfsLevelNodes.size() - bfsMorselNextStartIdx); bfsMorselNextStartIdx += bfsLevelMorselSize; return BFSLevelMorsel(bfsMorselNextStartIdx - bfsLevelMorselSize, bfsLevelMorselSize); }