Skip to content

Commit

Permalink
fix thread::id format
Browse files Browse the repository at this point in the history
  • Loading branch information
josevcm committed Jul 15, 2024
1 parent 03922d7 commit 429ecc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nfc-lib/lib-rt/rt-lang/src/main/cpp/Format.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ std::string rt::Format::format(const std::string &fmt, const std::vector<Variant
}
else if (auto value = std::get_if<std::thread::id>(&parameter))
{
snprintf(buffer, sizeof(buffer), ("%" + opts + (mode.empty() ? "d" : mode)).c_str(), *value);
snprintf(buffer, sizeof(buffer), ("0x%" + opts + "x").c_str(), *value);
}
else if (auto value = std::get_if<Buffer<unsigned char>>(&parameter))
{
Expand Down

0 comments on commit 429ecc7

Please sign in to comment.