Skip to content

Declare pi constant as long double#129

Merged
spnda merged 1 commit intospnda:mainfrom
slowriot:patch-1
Dec 23, 2025
Merged

Declare pi constant as long double#129
spnda merged 1 commit intospnda:mainfrom
slowriot:patch-1

Conversation

@slowriot
Copy link
Contributor

Declare the pi constant as long double explicitly. This silences the warning generated by -Wdouble-promotion:

implicit conversion increases floating-point precision: 'double' to 'const long double'

Signed-off-by: slowriot <slowriot@users.noreply.github.com>
@spnda spnda merged commit f7627e4 into spnda:main Dec 23, 2025
23 checks passed
@slowriot slowriot deleted the patch-1 branch December 23, 2025 16:35
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