Skip to content

Commit e2b4546

Browse files
author
Rao Meng
committed
fix a clang warning
1 parent 6336fc1 commit e2b4546

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fmtlog-inl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ class fmtlogDetailT
372372
hour.fromi(h);
373373
setArgVal<14>(info.getBase());
374374
setArgVal<15>(info.getLocation());
375-
logLevel = "DBG INF WRN ERR OFF" + (info.logLevel << 2);
375+
logLevel = (const char*)"DBG INF WRN ERR OFF" + (info.logLevel << 2);
376376

377377
size_t headerPos = membuf.size();
378378
fmt::detail::vformat_to(membuf, headerPattern, fmt::basic_format_args(args.data(), parttenArgSize));

0 commit comments

Comments
 (0)