8000
Skip to content

Remove invalid 'd' suffix for double literals#125

Draft
xtexx wants to merge 1 commit intoloongson:loongarch-portfrom
xtexx:remove-float-suf
Draft

Remove invalid 'd' suffix for double literals#125
xtexx wants to merge 1 commit intoloongson:loongarch-portfrom
xtexx:remove-float-suf

Conversation

@xtexx
Copy link
Copy Markdown
@xtexx xtexx commented Jan 21, 2025

Per C++ 14 specification, "2.14.4 Floating literals", 'd' is not a standardized floating-suffix.
The 'd' floating-suffix is a GCC extension, which worked on GCC by default but not supported by Clang and many other C compilers.

Having no suffix makes a constant of double, which is expected here, so it can be removed safely.

Fixes: 09ae79f ("Update (2023.12.08)")
Signed-off-by: Bingwu Zhang xtex@aosc.io

Per C++ 14 specification, "2.14.4 Floating literals", 'd' is not a
standardized floating-suffix.
The 'd' floating-suffix is a GCC extension, which worked on GCC by
default but not supported by Clang and many other C compilers.

Having no suffix makes a constant of double, which is expected here, so
it can be removed safely.

Fixes: 09ae79f ("Update (2023.12.08)")
Signed-off-by: Bingwu Zhang <xtex@aosc.io>
@xtexx xtexx force-pushed the remove-float-suf branch from 2905442 to ee300a6 Compare March 1, 2025 04:02
@xtexx xtexx marked this pull request as draft March 1, 2025 04:08
@xtexx
Copy link
Copy Markdown
Author < 9061 /span>
xtexx commented Jan 31, 2026

#136 (comment)

@xtexx xtexx closed this Jan 31, 2026
@xtexx xtexx reopened this Feb 7, 2026
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.

1 participant

0