ISO C++ cast fix (patches #1024150 and #1024149).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29144 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2004-09-15 14:00:40 +00:00
parent 5d3e7b52d8
commit b7ecdec5aa
2 changed files with 70 additions and 67 deletions

View File

@@ -119,7 +119,8 @@ wxSoundStream& wxSoundStreamESD::Read(void *buffer, wxUint32 len)
return *this; return *this;
} }
m_lastcount = (wxUint32)ret = read(m_fd_input, buffer, len); ret = read(m_fd_input, buffer, len);
m_lastcount = (wxUint32)ret;
if (ret < 0) if (ret < 0)
m_snderror = wxSOUND_IOERROR; m_snderror = wxSOUND_IOERROR;
@@ -147,7 +148,8 @@ wxSoundStream& wxSoundStreamESD::Write(const void *buffer, wxUint32 len)
return *this; return *this;
} }
m_lastcount = (wxUint32)ret = write(m_fd_output, buffer, len); ret = write(m_fd_output, buffer, len);
m_lastcount = (wxUint32)ret;
if (ret < 0) if (ret < 0)
m_snderror = wxSOUND_IOERROR; m_snderror = wxSOUND_IOERROR;

View File

@@ -85,7 +85,8 @@ wxSoundStream& wxSoundStreamOSS::Read(void *buffer, wxUint32 len)
return *this; return *this;
} }
m_lastcount = (wxUint32)ret = read(m_fd, buffer, len); ret = read(m_fd, buffer, len);
m_lastcount = (wxUint32)ret;
m_q_filled = true; m_q_filled = true;
if (ret < 0) if (ret < 0)