mtytel / cursynth

GNU ncurses terminal synthesizer
http://gnu.org/software/cursynth
GNU General Public License v3.0
446 stars 64 forks source link

Compile error on osx #24

Open bastengao opened 7 years ago

bastengao commented 7 years ago

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 commented 2 years ago

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