From f7eeb0f7f5e0e7302bb31c2247fae6bdfe038fef Mon Sep 17 00:00:00 2001 From: Jake Smith Date: Wed, 13 Nov 2024 17:36:16 +0000 Subject: [PATCH] HPCC-32985 Fix theoretical overflow spotted by coverity Introduced by HPCC-32873. Signed-off-by: Jake Smith --- dali/ft/filecopy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dali/ft/filecopy.cpp b/dali/ft/filecopy.cpp index 3e13295dc45..9733873366a 100644 --- a/dali/ft/filecopy.cpp +++ b/dali/ft/filecopy.cpp @@ -1610,7 +1610,7 @@ void FileSprayer::commonUpSlaves() bool commonByIp = !isContainerized(); offset_t totalSourceFileSize = 0; - offset_t threshold = 0x8000 * numSlaves; + offset_t threshold = (offset_t)0x8000 * numSlaves; ForEachItemIn(i, sources) { const FilePartInfo & cur = sources.item(i);