mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Make sure relevant std::stringstreams are set to binary
This commit is contained in:
parent
766e885a1b
commit
75bf9b75ca
17 changed files with 54 additions and 66 deletions
|
@ -135,7 +135,7 @@ void TestAreaStore::testSerialization()
|
|||
b.data = "Area BB";
|
||||
store.insertArea(&b);
|
||||
|
||||
std::ostringstream os;
|
||||
std::ostringstream os(std::ios_base::binary);
|
||||
store.serialize(os);
|
||||
std::string str = os.str();
|
||||
|
||||
|
@ -157,7 +157,7 @@ void TestAreaStore::testSerialization()
|
|||
|
||||
UASSERTEQ(const std::string &, str, str_wanted);
|
||||
|
||||
std::istringstream is(str);
|
||||
std::istringstream is(str, std::ios_base::binary);
|
||||
store.deserialize(is);
|
||||
|
||||
// deserialize() doesn't clear the store
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue