From 7223e581a20281081322c0afa4754c71a3acb2ab Mon Sep 17 00:00:00 2001 From: Bananymous Date: Fri, 27 Sep 2024 15:33:25 +0300 Subject: [PATCH] WindowServer: Fix 32 bit compilation with -Werror There was a always false statement on 32 bit that the compliler was warning about. --- userspace/programs/WindowServer/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userspace/programs/WindowServer/main.cpp b/userspace/programs/WindowServer/main.cpp index 05b51c87..05503e6c 100644 --- a/userspace/programs/WindowServer/main.cpp +++ b/userspace/programs/WindowServer/main.cpp @@ -92,7 +92,7 @@ Config parse_config() else if (variable == "corner-radius"_sv) { char* endptr = nullptr; - long corner_radius = strtol(value.data(), &endptr, 0); + long long corner_radius = strtoll(value.data(), &endptr, 0); if (corner_radius < 0 || corner_radius == LONG_MAX || corner_radius >= INT32_MAX) dwarnln("invalid corner-radius: '{}'", value); else