netlist: fix clang warnings & srcclean. (nw)

This commit is contained in:
couriersud 2019-10-31 22:07:50 +01:00
parent c6b281685d
commit 9fe2af2be1
5 changed files with 17 additions and 17 deletions

View File

@ -139,8 +139,8 @@ namespace netlist
static constexpr const float DIODE_MAXDIFF = 1e5;
static constexpr const float DIODE_MAXVOLT = 30.0;
static constexpr const float TIMESTEP_MAXDIFF = 1e30;
static constexpr const float TIMESTEP_MINDIV = 1e-8;
static constexpr const float TIMESTEP_MAXDIFF = 1e30f;
static constexpr const float TIMESTEP_MINDIV = 1e-8f;
};
} // namespace netlist

View File

@ -67,7 +67,7 @@ namespace plib {
if (inputs[i] == cmd)
{
rc.m_cmd = PUSH_INPUT;
rc.m_param = static_cast<double>(i);
rc.m_param = static_cast<NT>(i);
stk += 1;
break;
}
@ -224,7 +224,7 @@ namespace plib {
return stack[ptr-1];
}
template struct pfunction<float>;
template struct pfunction<double>;
template class pfunction<float>;
template class pfunction<double>;
} // namespace plib

View File

@ -114,8 +114,8 @@ namespace plib {
std::uint16_t m_lfsr; //!< lfsr used for generating random numbers
};
extern template struct pfunction<float>;
extern template struct pfunction<double>;
extern template class pfunction<float>;
extern template class pfunction<double>;
} // namespace plib