Commit 0e465e0f authored by mattijs's avatar mattijs
Browse files

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

parent 2f62d94e
......@@ -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;
}
......
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment