tmxparser
tmxparser copied to clipboard
Assert fails for test.cpp:116-117 "ToString" (i.e., "YellowProperty" and "Tmx::Color("#ffffff")")
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
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.