mirror of
https://github.com/holub/mame
synced 2025-07-03 09:06:08 +03:00
netlist: fix clang warnings & srcclean. (nw)
This commit is contained in:
parent
c6b281685d
commit
9fe2af2be1
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user