mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-12-11 15:09:03 +08:00
lstmtrainer: Fix diagnostic message
Signed character values must be converted to unsigned integers for %x. Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
100d8cd29b
commit
43b2e9513b
@ -726,7 +726,7 @@ bool LSTMTrainer::EncodeString(const STRING& str, const UNICHARSET& unicharset,
|
|||||||
}
|
}
|
||||||
tprintf("Encoding of string failed! Failure bytes:");
|
tprintf("Encoding of string failed! Failure bytes:");
|
||||||
while (err_index < cleaned.size()) {
|
while (err_index < cleaned.size()) {
|
||||||
tprintf(" %x", cleaned[err_index++]);
|
tprintf(" %x", cleaned[err_index++] & 0xff);
|
||||||
}
|
}
|
||||||
tprintf("\n");
|
tprintf("\n");
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user