hyprwm / Hypr

Hypr is a tiling window manager written in modern C++.
BSD 3-Clause "New" or "Revised" License
1.05k stars 32 forks source link

Colour selection doesn't work on 32bit x86 due to strtol #101

Open bwachter opened 1 year ago

bwachter commented 1 year ago

Please describe the bug

strtol returns a long, which on 32bit x86 is shorter than the hex numbers used for colours. The relevant variables are defined wide enough (uint64_t), so just switching to strtoll makes things work. Not sure if this is worth changing, mainly filing this for documentation purposes.