summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2024-03-14 18:55:57 +0100
committerAldrik Ramaekers <aldrikboy@gmail.com>2024-03-14 18:55:57 +0100
commitf2b44f582dbb9d898e6aad1db6919b5a295815be (patch)
tree4c4b495c5c063a308c19e932c14aca45e7500954 /src/main.cpp
parent33caee123ae6e79f251d1cd9d45ca62332e8d55b (diff)
static analysis fixes
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 585d7ff..16d918e 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -268,7 +268,7 @@ void _ts_create_file_match_rows() {
ts_found_file *file = *(ts_found_file **)ts_array_at(&current_search_result->files, item);
char match_info_txt[20];
- snprintf(match_info_txt, 20, "#%d", item+1);
+ snprintf(match_info_txt, 20, "#%u", item+1);
ImGui::TableNextRow();
ImGui::TableNextColumn();
@@ -349,7 +349,7 @@ void _ts_create_text_match_rows() {
ImGui::TableHeader(file->file->path);
ImGui::TableNextColumn();
- snprintf(match_info_txt, 20, "%d match(es)", file->file->match_count);
+ snprintf(match_info_txt, 20, "%u match(es)", file->file->match_count);
ImGui::TableHeader(match_info_txt);
ImGui::SameLine();
@@ -362,7 +362,7 @@ void _ts_create_text_match_rows() {
if (file->file->collapsed) continue;
char match_nr[20];
- snprintf(match_nr, 20, "#%d", item+1);
+ snprintf(match_nr, 20, "#%u", item+1);
ImGui::TableNextRow();
ImGui::TableNextColumn();