You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Butterworth.cpp , in this piece of code (line 201):
// correct the overall gain
if(filter == kLoPass || filter == kBandPass){ // pre-blt is okay for S-plane
ba[0] = preBLTgain * (preBLTgain / gain); // 2nd term is how much BLT boosts,
}
else if(filter == kHiPass || kBandStop){ // HF gain != DC gain
ba[0] = 1 / ba[0];
}
My compiler complains about the line: else if(filter == kHiPass || kBandStop){ // HF gain != DC gain
error: converting the enum constant to a boolean [-Werror,-Wint-in-bool-context]
else if(filter == kHiPass || kBandStop){ // HF gain != DC gain
I am using: icpx -Wall -Wextra -pedantic -Werror -Wno-unused-parameter
The text was updated successfully, but these errors were encountered:
Thank you for filing the issue ... what version of C++ compiler are you using, on what platform? This code is a bit old and so, it may need a PR to update it to modern compilers. Looking fwd>> to your response.
In
Butterworth.cpp
, in this piece of code (line 201):My compiler complains about the line:
else if(filter == kHiPass || kBandStop){ // HF gain != DC gain
I am using:
icpx -Wall -Wextra -pedantic -Werror -Wno-unused-parameter
The text was updated successfully, but these errors were encountered: