mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-06 06:53:37 +00:00
Removed warnings
This commit is contained in:
parent
c00d00cac2
commit
6d445631f0
10 changed files with 23 additions and 20 deletions
|
|
@ -20,7 +20,7 @@ static const std::vector<double> E96 = {
|
|||
|
||||
double ESeries::ToESeries(double value, ESeries::Series s, ESeries::Type t)
|
||||
{
|
||||
if(s == Series::Ideal) {
|
||||
if(s == Series::Ideal || value <= 0) {
|
||||
// nothing to do
|
||||
return value;
|
||||
}
|
||||
|
|
@ -45,7 +45,7 @@ double ESeries::ToESeries(double value, ESeries::Series s, ESeries::Type t)
|
|||
if(index < series.size()) {
|
||||
higher = series[index];
|
||||
}
|
||||
double approximation;
|
||||
double approximation = 0;
|
||||
switch(t) {
|
||||
case Type::Lower: approximation = lower; break;
|
||||
case Type::Higher: approximation = higher; break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue