mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-18 06:30:14 +08:00
api: Replace Tesseract data types by POSIX data types
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
b4d77057d6
commit
c1d649ebbc
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user