From f2b44f582dbb9d898e6aad1db6919b5a295815be Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Thu, 14 Mar 2024 18:55:57 +0100 Subject: static analysis fixes --- src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main.cpp') 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(¤t_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(); -- cgit v1.2.3-70-g09d2