mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: resolve clang/MacOS size ambiguities (fixes #2778)
This commit is contained in:
committed by
Mark Olesen
parent
1c9ea038d0
commit
b13c2c042f
@ -176,9 +176,10 @@ void exchangeChunkedBuf
|
||||
const auto proci = slot.first;
|
||||
const auto count = slot.second.size();
|
||||
|
||||
if (proci != myProci)
|
||||
if (proci != myProci && count > maxCount)
|
||||
{
|
||||
maxCount = max(maxCount, count);
|
||||
// Note: using max() can be ambiguous
|
||||
maxCount = count;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1039,7 +1039,8 @@ Foam::Istream& Foam::ISstream::readRaw(char* data, std::streamsize count)
|
||||
else
|
||||
{
|
||||
// Forward seek
|
||||
is_.seekg(is_.tellg() + count);
|
||||
// - use absolute positioning (see C++ notes about std::ifstream)
|
||||
is_.seekg(is_.tellg() + std::istream::pos_type(count));
|
||||
|
||||
// Not sure if this is needed (as per rewind)
|
||||
// some documentation indicates that ifstream needs
|
||||
|
||||
Reference in New Issue
Block a user