Fixing warnings
This commit is contained in:
parent
1b647ca41e
commit
78c9aabd01
|
|
@ -1116,7 +1116,7 @@ void RChannelBufferHdfsWriter::WriteThread()
|
|||
Size_t dataToWrite = entry->m_buffer->GetAvailableSize();
|
||||
LogAssert(dataToWrite <= dataSize);
|
||||
bool ret =
|
||||
wa.WriteBlock((char *)dataAddr, dataToWrite,
|
||||
wa.WriteBlock((char *)dataAddr, (long) dataToWrite,
|
||||
entry->m_flush);
|
||||
if (ret)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@ BOOL ConvertCurrentDirToUNCPath(WCHAR *pwszNWShareName, WCHAR *pwszUncPath, DWOR
|
|||
if (dwCurrentDirLen == 0)
|
||||
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.
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in New Issue