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

absolute value function 'fabsf' given an argument of type 'double' but has parameter of type 'float' which may cause truncation of value #7

Open
ryandesign opened this issue Aug 9, 2023 · 0 comments

Comments

@ryandesign
Copy link

Building the latest git code on macOS 12, I get these warnings:

include/vpb/Source:595:43: warning: absolute value function 'fabsf' given an argument of type 'double' but has parameter of type 'float' which may cause truncation of value [-Wabsolute-value]
                float closestResolution = fabsf(composite._sourceList[0]->getSortValue()-_targetResolution);
                                          ^
include/vpb/Source:595:43: note: use function 'std::abs' instead
                float closestResolution = fabsf(composite._sourceList[0]->getSortValue()-_targetResolution);
                                          ^~~~~
                                          std::abs
include/vpb/Source:598:35: warning: absolute value function 'fabsf' given an argument of type 'double' but has parameter of type 'float' which may cause truncation of value [-Wabsolute-value]
                    float delta = fabsf(composite._sourceList[i]->getSortValue()-_targetResolution);
                                  ^
include/vpb/Source:598:35: note: use function 'std::abs' instead
                    float delta = fabsf(composite._sourceList[i]->getSortValue()-_targetResolution);
                                  ^~~~~
                                  std::abs
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

No branches or pull requests

1 participant