void-packages/srcpkgs/telegram-desktop/patches/3582bca53a1e195a31760978dc4...

23 lines
964 B
Diff

From 3582bca53a1e195a31760978dc41f67ce44fc7e4 Mon Sep 17 00:00:00 2001
From: Ilya Fedin <fedin-ilja2010@ya.ru>
Date: Mon, 22 Mar 2021 18:56:15 +0400
Subject: [PATCH] Fix build on 32-bit systems
---
base/platform/linux/base_last_input_linux.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/base/platform/linux/base_last_input_linux.cpp b/base/platform/linux/base_last_input_linux.cpp
index c51d890..b20bd03 100644
--- Telegram/lib_base/base/platform/linux/base_last_input_linux.cpp
+++ Telegram/lib_base/base/platform/linux/base_last_input_linux.cpp
@@ -135,7 +135,7 @@ std::optional<crl::time> MutterDBusLastUserInputTime() {
{},
"org.gnome.Mutter.IdleMonitor");
- const auto value = GlibVariantCast<ulong>(reply.get_child(0));
+ const auto value = GlibVariantCast<uint>(reply.get_child(0));
return (crl::now() - static_cast<crl::time>(value));
} catch (const Glib::Error &e) {
static const auto NotSupportedErrors = {