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

@ -362,7 +362,7 @@ namespace netlist
template <typename O>
state_container(O &owner, //!< owner must have a netlist() method.
const pstring &name, //!< identifier/name for this state variable
std::size_t n, //!< number of elements to allocate
std::size_t n, //!< number of elements to allocate
const value_type &value //!< Initial value after construction
);
//! Copy Constructor.

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

View File

@ -35,16 +35,16 @@ namespace plib {
{
public:
typedef C value_type;
typedef value_type* pointer;
typedef C value_type;
typedef value_type* pointer;
typedef const value_type* const_pointer;
typedef value_type& reference;
typedef const value_type& const_reference;
typedef value_type* iterator;
typedef const value_type* const_iterator;
typedef std::size_t size_type;
typedef std::ptrdiff_t difference_type;
typedef std::reverse_iterator<iterator> reverse_iterator;
typedef value_type& reference;
typedef const value_type& const_reference;
typedef value_type* iterator;
typedef const value_type* const_iterator;
typedef std::size_t size_type;
typedef std::ptrdiff_t difference_type;
typedef std::reverse_iterator<iterator> reverse_iterator;
typedef std::reverse_iterator<const_iterator> const_reverse_iterator;
//uninitialised_array_t() noexcept = default;