Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backends dont overflow on 32bit builds #64

Merged
merged 1 commit into from
Aug 25, 2024
Merged

Conversation

gulafaran
Copy link
Contributor

make the definition long long as its used as long long later, only the value was being calculated TIMESPEC_NSEC_PER_SEC * 240 and rolls over before assigning to the variable.

long long  lowestNs = TIMESPEC_NSEC_PER_SEC * 240 /* 240s, 4 mins */;

make the definition long long as its used as long long later, only the
value was being calculated TIMESPEC_NSEC_PER_SEC * 240 and rolls over
before assigning to the variable.
@gulafaran gulafaran changed the title headless dont overflow on 32bit builds backends dont overflow on 32bit builds Aug 25, 2024
@vaxerski vaxerski merged commit ddf6987 into hyprwm:main Aug 25, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants