mirror of
https://github.com/holub/mame
synced 2025-04-22 08:22:15 +03:00
netlist: clang tidy fixes and srcclean. (nw)
This commit is contained in:
parent
d3ee7e21c6
commit
00bff3e703
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user