mirror of
https://github.com/holub/mame
synced 2025-07-03 09:06:08 +03:00
Fix pedantic clang warnings. (nw)
This commit is contained in:
parent
aacee827fe
commit
0c1b6430d0
@ -317,8 +317,8 @@ public:
|
||||
char b[4];
|
||||
if (m_strm.read(&b[0], 1) != 1)
|
||||
return false;
|
||||
const unsigned l = pstring::traits_type::codelen(b);
|
||||
for (unsigned i = 1; i < l; i++)
|
||||
const std::size_t l = pstring::traits_type::codelen(b);
|
||||
for (std::size_t i = 1; i < l; i++)
|
||||
if (m_strm.read(&b[i], 1) != 1)
|
||||
return false;
|
||||
c = pstring::traits_type::code(b);
|
||||
|
@ -110,7 +110,7 @@ public:
|
||||
const_iterator &operator=(const const_iterator &rhs) noexcept = default;
|
||||
const_iterator &operator=(const_iterator &&rhs) noexcept = default;
|
||||
|
||||
const_iterator& operator++() noexcept { p += traits_type::codelen(&(*p)); return *this; }
|
||||
const_iterator& operator++() noexcept { p += static_cast<difference_type>(traits_type::codelen(&(*p))); return *this; }
|
||||
const_iterator operator++(int) noexcept { const_iterator tmp(*this); operator++(); return tmp; }
|
||||
|
||||
bool operator==(const const_iterator& rhs) const noexcept { return p == rhs.p; }
|
||||
|
Loading…
Reference in New Issue
Block a user