Mojira Archive
MCPE-7091

CompoundTag::putLong has wrong parameter type (should be long long, not long)

The NBT library included in MCPE can load TAG_Long values fine, but when saving, only 32 bits are saved, because the save method is declared as

CompoundTag::putLong(std::string const&, long)

when it should be declared as

CompoundTag::putLong(std::string const&, long long)

On ARM, long is a 32-bit integer, and long long is the 64 bit integer.

This affects world time and world seed, since as far as I know those values are the only values stored as longs.

Fixed

Zhuowei Zhang

2014-04-13, 09:35 PM

2018-06-02, 08:30 PM

2014-04-14, 02:48 PM

1

4

Unconfirmed

0.8.1

0.9.0 Build 1