Skip to content

Commit bd45894

Browse files
committed
tidy: 消除在ARM上的编译错误问题
1 parent bdb70c1 commit bd45894

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/base/log_impl.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ void LogPrintfFunc(const char *module_id, const char *func_name, const char *fil
142142

143143
if (fmt != nullptr) {
144144
if (with_args) {
145-
uint32_t buff_size = std::min(2048lu, _LogTextMaxLength) + 1;
145+
constexpr size_t kMaxBuffSize = 2048lu;
146+
uint32_t buff_size = std::min(kMaxBuffSize, _LogTextMaxLength) + 1;
146147

147148
for (;;) {
148149
va_list args;

0 commit comments

Comments
 (0)