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

Compile error on osx #24

Open
bastengao opened this issue Sep 1, 2016 · 1 comment
Open

Compile error on osx #24

bastengao opened this issue Sep 1, 2016 · 1 comment

Comments

@bastengao
Copy link

When I execute 'make', output this log.

In file included from mono_panner.cpp:20:
./wave.h:258:16: 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]
        return fabsf(2.0f - 4.0f * modf(t + 0.75f, &integral)) - 1;
               ^
./wave.h:258:16: note: use function 'std::abs' instead
        return fabsf(2.0f - 4.0f * modf(t + 0.75f, &integral)) - 1;
               ^~~~~
               std::abs
@3119369616
Copy link

This is not an error in fact. It's just a warning of the informal syntax. Please feel free to modify the code.

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

2 participants