From ee04347347ada57a90deb13c5b8bed3ec99b9559 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Wed, 10 Jul 2019 16:20:50 +0200 Subject: [PATCH] Fix format string for 64 bit integer (CID 1402986) Commit c1264c189e6fd6de3e79135a46ecba3d00931147 was not the right fix. Signed-off-by: Stefan Weil --- src/lstm/recodebeam.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lstm/recodebeam.cpp b/src/lstm/recodebeam.cpp index d9589de0..a47aeaa6 100644 --- a/src/lstm/recodebeam.cpp +++ b/src/lstm/recodebeam.cpp @@ -47,7 +47,7 @@ void RecodeNode::Print(int null_char, const UNICHARSET& unicharset, tprintf("label=%d, uid=%d=%s", code, unichar_id, unicharset.debug_str(unichar_id).string()); } - tprintf(" score=%g, c=%g,%s%s%s perm=%d, hash=%llx", score, certainty, + tprintf(" score=%g, c=%g,%s%s%s perm=%d, hash=%" PRIx64, score, certainty, start_of_dawg ? " DawgStart" : "", start_of_word ? " Start" : "", end_of_word ? " End" : "", permuter, code_hash); if (depth > 0 && prev != nullptr) {