1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

build fix

This commit is contained in:
Joshua Kriegshauser 2022-09-01 15:55:49 -07:00
parent 5dc29ba68d
commit f6cfbf3239

View File

@ -429,7 +429,7 @@ Worker::Worker( const char* name, const char* program, const std::vector<ImportE
{
// There is no specific chrome-tracing type for frame events. We use messages that contain the word "frame"
std::string lower(v.message);
std::transform(lower.begin(), lower.end(), lower.begin(), std::tolower);
std::transform(lower.begin(), lower.end(), lower.begin(), [](char c) { return char(std::tolower(c)); });
if (lower.find("frame") != std::string::npos)
{
// Reserve 0 as the default FrameSet, since it replaces the name with "Frame" and we want to keep our custom names.