Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mightymos opened this issue Aug 27, 2018 · 1 comment

Comments

@mightymos
Copy link

mightymos commented Aug 27, 2018

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

@TheRetikGM
Copy link

TheRetikGM commented Jul 2, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants