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

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 0.8.1
    • Fix Version/s: 0.9.0 Build 1
    • Labels:
      None
    • Confirmation Status:
      Unconfirmed
    • Platform:
      Tablet - Android - Asus Nexus 7

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: