Skip to content

Commit

Permalink
api: Replace Tesseract data types by POSIX data types
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed May 2, 2017
1 parent b4d7705 commit c1d649e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/baseapi.cpp
Expand Up @@ -760,7 +760,7 @@ void TessBaseAPI::DumpPGM(const char* filename) {
fprintf(fp, "P5 %d %d 255\n", width, height);
for (int y = 0; y < height; ++y, data += pixGetWpl(pix)) {
for (int x = 0; x < width; ++x) {
uinT8 b = GET_DATA_BIT(data, x) ? 0 : 255;
uint8_t b = GET_DATA_BIT(data, x) ? 0 : 255;
fwrite(&b, 1, 1, fp);
}
}
Expand Down

0 comments on commit c1d649e

Please sign in to comment.