Skip to content

Conversation

@ZERICO2005
Copy link
Contributor

Because intmax_t and long long have the same width, intmax_t abs(intmax_t) and long long abs(long long) will conflict. Same thing for imaxdiv_t div(intmax_t, intmax_t) and lldiv_t div(long long, long long).

It turns out that the intmax_t overloads of abs and div are only defined if intmax_t is an extended integer type (larger than long long)

@adriweb adriweb merged commit 4f00ea9 into CE-Programming:master Feb 2, 2025
ZERICO2005 added a commit to ZERICO2005/toolchain that referenced this pull request Feb 7, 2025
@ZERICO2005 ZERICO2005 deleted the fix_intmax_overloads branch April 16, 2025 04:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants