tmxparser icon indicating copy to clipboard operation
tmxparser copied to clipboard

Assert fails for test.cpp:116-117 "ToString" (i.e., "YellowProperty" and "Tmx::Color("#ffffff")")

Open mightymos opened this issue 7 years ago • 1 comments

Windows 7 Home SP1 64-bit. g++.exe (tdm-1) 5.1.0. Commenting out lines 116-117 in test.cpp appears to allow [run_tests.exe] to complete successfully. Otherwise a crash due to an assert is experienced for both lines. Console output attached. tmxparser_runtests_crash_08-27-2018.txt

mightymos avatar Aug 27 '18 09:08 mightymos

Changing color = std::strtol((str.c_str() + 1), nullptr, 16); to color = std::strtoul((str.c_str() + 1), nullptr, 16); in TmxColor.cpp line 60 fixed it for me.

TheRetikGM avatar Jul 02 '21 11:07 TheRetikGM