Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/TmxColor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ namespace Tmx
Color::Color(const std::string& str)
{
// We skip the first # character and then read directly the hexadecimal value
color = std::strtol((str.c_str() + 1), nullptr, 16);
color = std::strtoul((str.c_str() + 1), nullptr, 16);

// If the input has the short format #RRGGBB without alpha channel we set it to 255
if(str.length() == 7) color |= 0xff000000;
Expand Down