Skip to content
Snippets Groups Projects
Commit b75e939d authored by mattijs's avatar mattijs
Browse files

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

parent 501de6dc
Branches
Tags
1 merge request!121Merge develop into master for v1706 release
......@@ -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;
}
......
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