2
0
mirror of https://github.com/gabime/spdlog.git synced 2026-01-19 04:52:09 +00:00
Files
spdlog/include/spdlog
SamareshSingh cdbd64e230 Fix sign conversion warnings in qt_sinks.h (#3487)
Add static_cast to fix compiler warnings when building with
-Werror=sign-conversion and -Werror=shorten-64-to-32:

1. Cast msg.color_range_start/end to qsizetype when passing to
   QString::fromUtf8(), since QString expects signed qsizetype but
   the message fields are size_t (unsigned).

2. Cast msg.level to size_t when indexing into colors_ array, since
   level_enum is a signed int but array indexing expects size_t.

These casts are safe because:
- qsizetype is guaranteed to be the same size as size_t per Qt docs
- color_range values come from valid string positions
- level values are from a small enum range

Fixes #3321
2025-11-14 01:44:43 +02:00
..
2025-06-08 23:16:34 +03:00
2025-11-01 18:03:07 +02:00
2025-10-11 15:18:15 +03:00
2025-05-08 14:02:00 +03:00
2023-09-25 16:40:36 +03:00
2025-05-08 14:02:00 +03:00
2023-09-25 16:40:36 +03:00
2025-05-08 14:02:00 +03:00
2023-09-25 16:40:36 +03:00
2023-09-25 16:40:36 +03:00
2025-05-08 14:02:00 +03:00
2023-09-25 16:40:36 +03:00
2025-05-08 15:42:54 +03:00
2025-05-09 02:49:36 +03:00
2024-03-09 21:40:05 +02:00
2025-05-08 14:02:00 +03:00
2025-10-11 15:53:05 +03:00