mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Weather backward compatibility
This commit is contained in:
parent
0e89bca173
commit
06cdce1e12
11 changed files with 63 additions and 32 deletions
|
@ -612,7 +612,7 @@ struct TestCompress: public TestBase
|
|||
fromdata[3]=1;
|
||||
|
||||
std::ostringstream os(std::ios_base::binary);
|
||||
compress(fromdata, os, SER_FMT_VER_HIGHEST);
|
||||
compress(fromdata, os, SER_FMT_VER_HIGHEST_READ);
|
||||
|
||||
std::string str_out = os.str();
|
||||
|
||||
|
@ -627,7 +627,7 @@ struct TestCompress: public TestBase
|
|||
std::istringstream is(str_out, std::ios_base::binary);
|
||||
std::ostringstream os2(std::ios_base::binary);
|
||||
|
||||
decompress(is, os2, SER_FMT_VER_HIGHEST);
|
||||
decompress(is, os2, SER_FMT_VER_HIGHEST_READ);
|
||||
std::string str_out2 = os2.str();
|
||||
|
||||
infostream<<"decompress: ";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue