BUG: label64: write primitives consistent with label size. Fixes #505.

This commit is contained in:
mattijs
2017-06-29 17:33:40 +01:00
parent 2f62d94e8b
commit 0e465e0f5d
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ Foam::Ostream& Foam::operator<<(Ostream& os, const bool b)
{
// we could also write as text string without any difficulty
// os << (b ? "true" : "false");
os.write(int(b));
os.write(label(b));
os.check(FUNCTION_NAME);
return os;
}

View File

@ -68,7 +68,7 @@ Foam::Istream& Foam::operator>>(Istream& is, direction& d)
Foam::Ostream& Foam::operator<<(Ostream& os, const direction d)
{
os.write(int(d));
os.write(label(d));
os.check(FUNCTION_NAME);
return os;
}