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

ZiNC: invalid suffix 'd' on floating constant (macOS) #48

Closed
phdsg opened this issue Feb 17, 2018 · 3 comments
Closed

ZiNC: invalid suffix 'd' on floating constant (macOS) #48

phdsg opened this issue Feb 17, 2018 · 3 comments

Comments

@phdsg
Copy link

phdsg commented Feb 17, 2018

Bidoo/src/ZINC.cpp

Lines 43 to 44 in 4c45dd4

iFilter[i] = new Biquad(bq_type_bandpass, freq[i%BANDS] / engineGetSampleRate(), 5.0d, 6.0d);
cFilter[i] = new Biquad(bq_type_bandpass, freq[i%BANDS] / engineGetSampleRate(), 5.0d, 6.0d);

mac compiler complains about this.


macvm$ make
c++ -I./pffft -DPFFFT_SIMD_DISABLE -I./src/dep/include -fPIC -I../../include -I../../dep/include -DSLUG=Bidoo -DVERSION=0.5.21 -MMD -g -O3 -march=nocona -ffast-math -fno-finite-math-only -Wall -Wextra -Wno-unused-parameter -DARCH_MAC -mmacosx-version-min=10.7 -std=c++11 -stdlib=libc++ -c -o build/src/ZINC.cpp.o src/ZINC.cpp
src/ZINC.cpp:43:88: error: invalid suffix 'd' on floating constant
                        iFilter[i] = new Biquad(bq_type_bandpass, freq[i%BANDS] / engineGetSampleRate(), 5.0d, 6.0d);
                                                                                                            ^
src/ZINC.cpp:43:94: error: invalid suffix 'd' on floating constant
                        iFilter[i] = new Biquad(bq_type_bandpass, freq[i%BANDS] / engineGetSampleRate(), 5.0d, 6.0d);
                                                                                                                  ^
src/ZINC.cpp:44:88: error: invalid suffix 'd' on floating constant
                        cFilter[i] = new Biquad(bq_type_bandpass, freq[i%BANDS] / engineGetSampleRate(), 5.0d, 6.0d);
                                                                                                            ^
src/ZINC.cpp:44:94: error: invalid suffix 'd' on floating constant
                        cFilter[i] = new Biquad(bq_type_bandpass, freq[i%BANDS] / engineGetSampleRate(), 5.0d, 6.0d);
                                                                                                                  ^
4 errors generated.
make: *** [build/src/ZINC.cpp.o] Error 1
@sebastien-bouffier
Copy link
Owner

bad bidoo naughty bidoo ... I will change that asap

@sebastien-bouffier
Copy link
Owner

Done. Tell me if it is OK and thanks for your help as usual.

@phdsg
Copy link
Author

phdsg commented Feb 17, 2018

yeah, already fixed mine locally, but i used the 'F' suffix which should probably be the same...

tried & builds!

closing

@phdsg phdsg closed this as completed Feb 17, 2018
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