mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 18:23:15 +02:00
The wksFile.Read() call returns a size_t which is then compared with a int. Make the filelen variable a size_t to make sure it is of the correct width. Fixes the following warning: kicad/common/page_layout/page_layout_reader.cpp: In member function ‘void WS_DATA_MODEL::SetPageLayout(const wxString&, bool)’: kicad/common/page_layout/page_layout_reader.cpp:853:41: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare] 853 | if( wksFile.Read( buffer, filelen ) != filelen )