diff --git a/DryadVertex/VertexHost/system/channel/src/channelbufferhdfs.cpp b/DryadVertex/VertexHost/system/channel/src/channelbufferhdfs.cpp index d2d326e..aa14a1d 100644 --- a/DryadVertex/VertexHost/system/channel/src/channelbufferhdfs.cpp +++ b/DryadVertex/VertexHost/system/channel/src/channelbufferhdfs.cpp @@ -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) { diff --git a/DryadVertex/VertexHost/vertex/managedwrappervertex/ManagedWrapperVertex.cpp b/DryadVertex/VertexHost/vertex/managedwrappervertex/ManagedWrapperVertex.cpp index 519329b..8e99b0b 100644 --- a/DryadVertex/VertexHost/vertex/managedwrappervertex/ManagedWrapperVertex.cpp +++ b/DryadVertex/VertexHost/vertex/managedwrappervertex/ManagedWrapperVertex.cpp @@ -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;