Skip to content

Commit

Permalink
Fix argument for tprintf
Browse files Browse the repository at this point in the history
This fixes a gcc warning:

ccutil/tprintf.h:31:50: warning:
 format ‘%d’ expects argument of type ‘int’,
 but argument 2 has type ‘tesseract::ScoredFont’ [-Wformat=]

Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Mar 17, 2016
1 parent 92c02a7 commit a95edd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classify/shapeclassifier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ void ShapeClassifier::UnicharPrintResults(
if (results[i].fonts.size() != 0) {
tprintf(" Font Vector:");
for (int f = 0; f < results[i].fonts.size(); ++f) {
tprintf(" %d", results[i].fonts[f]);
tprintf(" %d", results[i].fonts[f].fontinfo_id);
}
}
tprintf("\n");
Expand Down

0 comments on commit a95edd7

Please sign in to comment.