Skip to content

Commit

Permalink
HPCC-32985 Fix theoretical overflow spotted by coverity
Browse files Browse the repository at this point in the history
Introduced by HPCC-32873.

Signed-off-by: Jake Smith <[email protected]>
  • Loading branch information
jakesmith committed Nov 13, 2024
1 parent 5bf7c4f commit f7eeb0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dali/ft/filecopy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f7eeb0f

Please sign in to comment.