Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-7091

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 0.9.0 Build 1
    • 0.8.1
    • None
    • Unconfirmed
    • Tablet - Android - Asus Nexus 7

      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.

            zhuowei Zhuowei Zhang
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: