BUG: bad detection of Ensight binary/ascii (fixes #2579)

- related to #2535
This commit is contained in:
Mark Olesen
2022-09-09 11:45:51 +02:00
parent c841aaed83
commit f9b85dbfbb

View File

@ -68,7 +68,7 @@ Foam::ensightReadFile::detectBinaryHeader(const fileName& pathname)
if
(
(buf.find("Binary") == std::string::npos)
|| (buf.find("binary") == std::string::npos)
&& (buf.find("binary") == std::string::npos)
)
{
fmt = IOstreamOption::ASCII;