Skip to content

Commit

Permalink
code cleanup (nw)
Browse files Browse the repository at this point in the history
  • Loading branch information
SailorSat committed Feb 27, 2025
1 parent 6ec3940 commit 0276f78
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/mame/sega/m1comm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -571,15 +571,15 @@ int m1comm_device::read_frame(int dataSize)
return 0;

// try to read a message
std::uint32_t recv = 0;
uint32_t recv = 0;
std::error_condition filerr = m_line_rx->read(m_buffer0, 0, dataSize, recv);
if (recv > 0)
{
// check if message complete
if (recv != dataSize)
{
// only part of a message - read on
std::uint32_t togo = dataSize - recv;
uint32_t togo = dataSize - recv;
int offset = recv;
while (togo > 0)
{
Expand Down Expand Up @@ -628,7 +628,7 @@ void m1comm_device::send_frame(int dataSize){
if (!m_line_tx)
return;

std::uint32_t written = 0;
uint32_t written = 0;
std::error_condition filerr = m_line_tx->write(&m_buffer0, 0, dataSize, written);
if (filerr)
{
Expand Down
6 changes: 3 additions & 3 deletions src/mame/sega/m2comm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -643,15 +643,15 @@ int m2comm_device::read_frame(int dataSize)
return 0;

// try to read a message
std::uint32_t recv = 0;
uint32_t recv = 0;
std::error_condition filerr = m_line_rx->read(m_buffer0, 0, dataSize, recv);
if (recv > 0)
{
// check if message complete
if (recv != dataSize)
{
// only part of a message - read on
std::uint32_t togo = dataSize - recv;
uint32_t togo = dataSize - recv;
int offset = recv;
while (togo > 0)
{
Expand Down Expand Up @@ -699,7 +699,7 @@ void m2comm_device::send_frame(int dataSize){
if (!m_line_tx)
return;

std::uint32_t written = 0;
uint32_t written = 0;
std::error_condition filerr = m_line_tx->write(&m_buffer0, 0, dataSize, written);
if (filerr)
{
Expand Down

0 comments on commit 0276f78

Please sign in to comment.