Skip to content

Commit

Permalink
Fix hexadecimal line numbers in error reports
Browse files Browse the repository at this point in the history
  • Loading branch information
Nekotekina committed Dec 17, 2020
1 parent c16fb61 commit 3c86e14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Utilities/StrFmt.cpp
Expand Up @@ -250,11 +250,11 @@ void fmt_class_string<src_loc>::format(std::string& out, u64 arg)

if (loc.col != umax)
{
fmt::append(out, "\n(in file %s:%s[:%s]", loc.file, loc.line, loc.col);
fmt::append(out, "\n(in file %s:%u[:%u]", loc.file, loc.line, loc.col);
}
else
{
fmt::append(out, "\n(in file %s:%s", loc.file, loc.line);
fmt::append(out, "\n(in file %s:%u", loc.file, loc.line);
}

if (loc.func && *loc.func)
Expand Down

0 comments on commit 3c86e14

Please sign in to comment.