Fixing warnings

This commit is contained in:
Michael Isard 2013-07-17 16:10:57 -07:00
parent 1b647ca41e
commit 78c9aabd01
2 changed files with 2 additions and 2 deletions

View File

@ -1116,7 +1116,7 @@ void RChannelBufferHdfsWriter::WriteThread()
Size_t dataToWrite = entry->m_buffer->GetAvailableSize(); Size_t dataToWrite = entry->m_buffer->GetAvailableSize();
LogAssert(dataToWrite <= dataSize); LogAssert(dataToWrite <= dataSize);
bool ret = bool ret =
wa.WriteBlock((char *)dataAddr, dataToWrite, wa.WriteBlock((char *)dataAddr, (long) dataToWrite,
entry->m_flush); entry->m_flush);
if (ret) if (ret)
{ {

View File

@ -102,7 +102,7 @@ BOOL ConvertCurrentDirToUNCPath(WCHAR *pwszNWShareName, WCHAR *pwszUncPath, DWOR
if (dwCurrentDirLen == 0) if (dwCurrentDirLen == 0)
break; break;
DWORD dwShareLocalPathLen = wcslen(pwszShareLocalPath); DWORD dwShareLocalPathLen = (DWORD) wcslen(pwszShareLocalPath);
if( dwShareLocalPathLen >= dwCurrentDirLen) // current directory must be longer than share local path, otherwise something is off. if( dwShareLocalPathLen >= dwCurrentDirLen) // current directory must be longer than share local path, otherwise something is off.
break; break;