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:
David P. Sicilia 2018-11-27 20:24:21 -05:00
parent 63a475d88c
commit a6152ebadd

View File

@ -193,7 +193,7 @@ struct source_loc
}
SPDLOG_CONSTEXPR source_loc(const char *filename, int line)
: filename(filename)
, line(line)
, line(static_cast<uint32_t>(line))
{
}