mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-25 18:11:33 +08:00
Make an implicit cast from int --> uint32_t explicit.
Perhaps this casting should not happen to begin with, but better to make it explicit where it is happening for readability. This fixes a compiler warning.
This commit is contained in:
parent
63a475d88c
commit
a6152ebadd
@ -193,7 +193,7 @@ struct source_loc
|
|||||||
}
|
}
|
||||||
SPDLOG_CONSTEXPR source_loc(const char *filename, int line)
|
SPDLOG_CONSTEXPR source_loc(const char *filename, int line)
|
||||||
: filename(filename)
|
: filename(filename)
|
||||||
, line(line)
|
, line(static_cast<uint32_t>(line))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user