Open BitBlitObviMormon opened 2 years ago
It looks like there is a problem with reading/writing 64-bit integers in big endian, even though it apparently works with 32-bit and smaller. I think this might be a compiler bug.
Which hard/software do you compile the code for usually?
I am using GCC and Clang on Linux.
I must say that I'm not really maintaining this library anymore, but there are forks made by, for example, the MultiMC guys. Maybe they have fixed or worked around this issue.
I ran CxxTest on the LibNBT++ library, but 6 of the 34 tests fail. The files appear to be read correctly as no file-related exceptions appear to be thrown, however the data returned does not meet the assertions in those tests.
These are the tests that failed:
I am using Windows 8, Visual Studio Community 2019, CxxTest 4.4, and zlib 1.2.11.
Here is the full log from running those tests.