WindowServer: Fix 32 bit compilation with -Werror

There was a always false statement on 32 bit that the compliler was
warning about.
This commit is contained in:
Bananymous 2024-09-27 15:33:25 +03:00
parent 2d11ce9669
commit 7223e581a2
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ Config parse_config()
else if (variable == "corner-radius"_sv) else if (variable == "corner-radius"_sv)
{ {
char* endptr = nullptr; 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) if (corner_radius < 0 || corner_radius == LONG_MAX || corner_radius >= INT32_MAX)
dwarnln("invalid corner-radius: '{}'", value); dwarnln("invalid corner-radius: '{}'", value);
else else