mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-18 06:30:14 +08:00
ccstruct: Fix non portable and wrong format strings
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
9abbc4c6f3
commit
121a7c6489
@ -89,7 +89,7 @@ enum DawgType {
|
||||
#define WERD_END_FLAG (inT64) 4
|
||||
#define LETTER_START_BIT 0
|
||||
#define NUM_FLAG_BITS 3
|
||||
#define REFFORMAT "%lld"
|
||||
#define REFFORMAT "%" PRId64
|
||||
|
||||
static const bool kDawgSuccessors[DAWG_TYPE_COUNT][DAWG_TYPE_COUNT] = {
|
||||
{ 0, 1, 1, 0 }, // for DAWG_TYPE_PUNCTUATION
|
||||
|
@ -572,7 +572,7 @@ bool Trie::eliminate_redundant_edges(NODE_REF node,
|
||||
const EDGE_RECORD &edge1,
|
||||
const EDGE_RECORD &edge2) {
|
||||
if (debug_level_ > 1) {
|
||||
tprintf("\nCollapsing node %d:\n", node);
|
||||
tprintf("\nCollapsing node %" PRIi64 ":\n", node);
|
||||
print_node(node, MAX_NODE_EDGES_DISPLAY);
|
||||
tprintf("Candidate edges: ");
|
||||
print_edge_rec(edge1);
|
||||
|
Loading…
Reference in New Issue
Block a user