From a9b76c7f997daffa0fababdb54e5feb2ee05fdc1 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sat, 4 Feb 2023 21:10:46 +0000 Subject: [PATCH] unify types in id --- hyprland-share-picker/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hyprland-share-picker/main.cpp b/hyprland-share-picker/main.cpp index 5999c29..5029534 100644 --- a/hyprland-share-picker/main.cpp +++ b/hyprland-share-picker/main.cpp @@ -36,7 +36,7 @@ MainPicker* mainPickerPtr = nullptr; struct SWindowEntry { std::string name; std::string clazz; - long unsigned int id = 0; + unsigned long long id = 0; }; std::vector getWindows(const char* env) { @@ -61,7 +61,7 @@ std::vector getWindows(const char* env) { const auto TITLESTR = rolling.substr(CLASSSEPPOS + 5, TITLESEPPOS - 5 - CLASSSEPPOS); try { - result.push_back({TITLESTR, CLASSSTR, std::stoll(IDSTR)}); + result.push_back({TITLESTR, CLASSSTR, std::stoull(IDSTR)}); } catch (std::exception& e) { // silent err }