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

tests: lib: c_lib: fix test_sqrt double promotion warnings #60593

Merged

Conversation

XenuIsWatching
Copy link
Member

Double promotion warnings are generated with the flag -Wdouble-promotion

@keith-packard
Copy link
Collaborator

Seems like you could just change the type of exponent to double here?

cfriedt

This comment was marked as duplicate.

@cfriedt cfriedt self-requested a review July 20, 2023 09:28
Double promotion warnings are generated with the flag -Wdouble-promotion
Exponent was defined as a float, but was really be used a double here
Change the type of exponent in sqrt from float to double.

Signed-off-by: Ryan McClelland <[email protected]>
@XenuIsWatching
Copy link
Member Author

Seems like you could just change the type of exponent to double here?

agreed, done

@cfriedt cfriedt merged commit f851d2a into zephyrproject-rtos:main Jul 21, 2023
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: C Library C Standard Library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants