From 86f0b66beed7305c7cf9c08ec6e37ec1041c4ede Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sat, 30 Mar 2024 19:33:01 +0100 Subject: fix crash in release 2.3 --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index a6e8dba..04cdfaf 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -56,10 +56,10 @@ static void _ts_create_popups(int window_w, int window_h) { // Settings window if (ImGui::BeginPopupModal("Text-Search settings", &open_settings_window, ImGuiWindowFlags_NoResize|ImGuiWindowFlags_NoMove)) { ImGui::SetWindowSize({300, 0}); - ImGui::DragInt("Threads", (int*)&ts_thread_count, 0.1f, 1, 8); + ImGui::DragInt("Threads", &ts_thread_count, 0.1f, 1, 8); ImGui::SetItemTooltip("Number of threads used to search for text matches"); - ImGui::DragInt("File Size", (int*)&max_file_size, 50.0f, 1, 10000, "%dMB"); + ImGui::DragInt("File Size", &max_file_size, 50.0f, 1, 10000, "%dMB"); ImGui::SetItemTooltip("Files larger than this will not be searched"); ImGui::Dummy({0, 70}); -- cgit v1.2.3-70-g09d2