diff --git a/src/test/nbt_read_write_helpers.cpp b/src/test/nbt_read_write_helpers.cpp index 81d3a86..323fea8 100644 --- a/src/test/nbt_read_write_helpers.cpp +++ b/src/test/nbt_read_write_helpers.cpp @@ -574,7 +574,7 @@ int main(){ ASSERT(javaStdString1 == *exportedString); //check that we get an error when trying to write a string that is too long - std::string overrunString = std::string(0xFFFFF, '.'); + std::string overrunString = std::string(0x10000, '.'); ASSERT(NBT::Helper::writeString(exportedString, tiny_utf8::string(overrunString)).isError); ASSERT(NBT::Helper::writeString(exportedString, tiny_utf8::string(overrunString)).errorCode == ErrorCodes::OVERRUN);