diff --git a/common/page_layout/page_layout_reader.cpp b/common/page_layout/page_layout_reader.cpp index c6f52b1edb..472b27d900 100644 --- a/common/page_layout/page_layout_reader.cpp +++ b/common/page_layout/page_layout_reader.cpp @@ -847,7 +847,7 @@ void WS_DATA_MODEL::SetPageLayout( const wxString& aFullFileName, bool Append ) return; } - int filelen = wksFile.Length(); + size_t filelen = wksFile.Length(); char * buffer = new char[filelen+10]; if( wksFile.Read( buffer, filelen ) != filelen )