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:
Stefan Weil 2019-08-15 14:31:32 +02:00
parent 100d8cd29b
commit 43b2e9513b

View File

@ -726,7 +726,7 @@ bool LSTMTrainer::EncodeString(const STRING& str, const UNICHARSET& unicharset,
}
tprintf("Encoding of string failed! Failure bytes:");
while (err_index < cleaned.size()) {
tprintf(" %x", cleaned[err_index++]);
tprintf(" %x", cleaned[err_index++] & 0xff);
}
tprintf("\n");
return false;