From 7a218f1d6c59195ff209cbed6865734d1c502def Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sat, 25 Dec 2021 17:01:25 +0100 Subject: [PATCH] Fix compiler warning [-Wsign-compare] Signed-off-by: Stefan Weil --- src/training/mftraining.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/training/mftraining.cpp b/src/training/mftraining.cpp index 329c25d1..dc75f339 100644 --- a/src/training/mftraining.cpp +++ b/src/training/mftraining.cpp @@ -255,7 +255,7 @@ int main(int argc, char **argv) { // Now write the inttemp and pffmtable. trainer->WriteInttempAndPFFMTable(trainer->unicharset(), *unicharset, *shape_table, float_classes, inttemp_file.c_str(), pffmtable_file.c_str()); - for (int c = 0; c < unicharset->size(); ++c) { + for (size_t c = 0; c < unicharset->size(); ++c) { FreeClassFields(&float_classes[c]); } delete[] float_classes;