mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: label64: write primitives consistent with label size. Fixes #505.
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user