cursynth icon indicating copy to clipboard operation
cursynth copied to clipboard

Compile error on osx

Open bastengao opened this issue 8 years ago • 1 comments

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

bastengao avatar Sep 01 '16 05:09 bastengao

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

vhyijk avatar Apr 23 '22 08:04 vhyijk