termux-packages/packages/openfoam/src-OpenFOAM-db-IOstreams-IOstreams-Istream.C.patch

23 lines
923 B
Diff
Raw Normal View History

--- ./src/OpenFOAM/db/IOstreams/IOstreams/Istream.C.orig 2021-12-01 03:15:50.000000000 +0100
+++ ./src/OpenFOAM/db/IOstreams/IOstreams/Istream.C 2021-12-01 03:15:50.000000000 +0100
@@ -141,7 +141,8 @@
<< "Expected a '" << token::END_LIST
<< "' while reading " << funcName
<< ", found " << delimiter.info()
- << " at stream position " << tellg(this) << nl
+ << " at stream position "
+ << static_cast<uint64_t>(tellg(this)) << nl
<< exit(FatalIOError);
}
@@ -182,7 +183,8 @@
<< "' or a '" << token::END_BLOCK
<< "' while reading " << funcName
<< ", found " << delimiter.info()
- << " at stream position " << tellg(this) << nl
+ << " at stream position "
+ << static_cast<uint64_t>(tellg(this)) << nl
<< exit(FatalIOError);
return '\0';