Skip to content

Commit 3f7e502

Browse files
fix sign-compare warning (#3479)
1 parent dd3ca04 commit 3f7e502

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/spdlog/details/os-inl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ SPDLOG_INLINE void utf8_to_wstrbuf(string_view_t str, wmemory_buf_t &target) {
489489
result_size =
490490
::MultiByteToWideChar(CP_UTF8, 0, str.data(), str_size, target.data(), result_size);
491491
if (result_size > 0) {
492-
assert(result_size == target.size());
492+
assert(result_size == static_cast<int>(target.size()));
493493
return;
494494
}
495495
}

0 commit comments

Comments
 (0)