Skip to content

Commit

Permalink
Fix printf format coverity issues
Browse files Browse the repository at this point in the history
This fixes a couple of issues I was supposed to fix, and missed in #12766 and #12767.
  • Loading branch information
eXeC64 committed Jun 11, 2015
1 parent bd45de8 commit 334522e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Code/Mantid/MantidPlot/src/origin/OPJFile.cpp
Expand Up @@ -526,7 +526,7 @@ int OPJFile::ParseFormatOld() {

int POS = int(ftell(f)-11);
fprintf(debug,"\nHEADER SECTION\n");
fprintf(debug," nr_spreads = %d\n",SPREADSHEET.size());
fprintf(debug," nr_spreads = %zu\n",SPREADSHEET.size());
fprintf(debug," [position @ 0x%X]\n",POS);
fflush(debug);

Expand Down Expand Up @@ -623,7 +623,7 @@ int OPJFile::ParseFormatOld() {
fflush(debug);

/////////////// COLUMN Types ///////////////////////////////////////////
fprintf(debug," Spreadsheet has %d columns\n",SPREADSHEET[spread].column.size());
fprintf(debug," Spreadsheet has %zu columns\n",SPREADSHEET[spread].column.size());
for (unsigned int j=0;j<SPREADSHEET[spread].column.size();j++) {
fprintf(debug," reading COLUMN %d/%zd type\n",j+1,SPREADSHEET[spread].column.size());
fflush(debug);
Expand Down

0 comments on commit 334522e

Please sign in to comment.