netlist: clang tidy fixes and srcclean. (nw)

This commit is contained in:
couriersud 2020-04-25 18:10:18 +02:00
parent d3ee7e21c6
commit 00bff3e703
3 changed files with 8 additions and 3 deletions

View File

@ -20,7 +20,7 @@ Now in netlist syntax this looks like:
NETLIST_START(charge_discharge)
ANALOG_INPUT(V5, 5) // Clock needs a 5V power supply
ANALOG_INPUT(V5, 5) // Clock needs a 5V power supply
SOLVER(solver, 48000) // Fixed frequency solver
CLOCK(I, 200) // 200 Hz clock as input, TTL logic output

View File

@ -46,6 +46,11 @@ namespace plib {
~dynlib() override;
COPYASSIGN(dynlib, delete)
dynlib(dynlib &&) noexcept = default;
dynlib &operator=(dynlib &&) noexcept = default;
protected:
void *getsym_p(const pstring &name) const noexcept override;

View File

@ -420,7 +420,7 @@ struct pwchar_traits
{
if (sizeof(wchar_t) == 2)
{
auto c = static_cast<uint16_t>(*p);
auto c = static_cast<uint16_t>(static_cast<unsigned char>(*p));
return ((c & 0xd800) == 0xd800) ? 2 : 1;
}
@ -439,7 +439,7 @@ struct pwchar_traits
{
if (sizeof(wchar_t) == 2)
{
auto c = static_cast<uint32_t>(*p++);
auto c = static_cast<uint32_t>(static_cast<unsigned char>(*p++));
if ((c & 0xd800) == 0xd800)
{
c = (c - 0xd800) << 10;