Skip to content

Commit

Permalink
Fix compile error for x86_64 MS Windows build
Browse files Browse the repository at this point in the history
lvstream.cpp:592:121: error: cast from 'HANDLE {aka void*}' to 'lUInt32 {aka long unsigned int}' loses precision
  • Loading branch information
EXL committed May 10, 2018
1 parent c948eb6 commit de03a11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crengine/src/lvstream.cpp
Expand Up @@ -589,7 +589,7 @@ class LVFileMappedStream : public LVNamedStream
);
if ( m_hMap==NULL ) {
DWORD err = GetLastError();
CRLog::error( "LVFileMappedStream::Map() -- Cannot map file to memory, err=%08x, hFile=%08x", err, (lUInt32)m_hFile );
CRLog::error( "LVFileMappedStream::Map() -- Cannot map file to memory, err=%08x, hFile=%p", err, m_hFile );
return error();
}
m_map = (lUInt8*) MapViewOfFile(
Expand Down

0 comments on commit de03a11

Please sign in to comment.