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

Remove invalid 'd' suffix for double literals #125

Draft
wants to merge 1 commit into
base: loongarch-port
Choose a base branch
from

Conversation

xtexx
Copy link

@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 [email protected]

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 <[email protected]>
@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
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.

None yet

1 participant