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 0276f78 commit f2aaccf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mame/sega/s32comm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -265,15 +265,15 @@ int s32comm_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 @@ -323,7 +323,7 @@ void s32comm_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 f2aaccf

Please sign in to comment.