diff options
| author | Yang Liu <liuyang22@iscas.ac.cn> | 2025-04-15 19:35:58 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-15 13:35:58 +0200 |
| commit | 12a90ebe9802eadae147b6bd3ce376175e75e4b4 (patch) | |
| tree | 69e92461a9b4011a738aedcb389776706753279f /src/tools | |
| parent | 5cd201241b9769bd8583f0eca9d9469e0ab9ca99 (diff) | |
| download | box64-12a90ebe9802eadae147b6bd3ce376175e75e4b4.tar.gz box64-12a90ebe9802eadae147b6bd3ce376175e75e4b4.zip | |
Eliminated many compilation warnings (#2535)
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/rbtree.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/rbtree.c b/src/tools/rbtree.c index 3c8b2b5a..1f6b4f94 100644 --- a/src/tools/rbtree.c +++ b/src/tools/rbtree.c @@ -2,6 +2,7 @@ #include <stddef.h> #include <stdint.h> #include <stdlib.h> +#include <inttypes.h> #ifdef RBTREE_TEST #define rbtreeMalloc malloc @@ -1183,7 +1184,7 @@ static void print_rbnode(const rbnode *node, unsigned depth, uintptr_t minstart, } else { print_rbnode(node->left, depth + ((node->meta & IS_BLACK) ? 1 : 0), minstart, node->start, bdepth); } - printf(", (%c/%p) %lx-%lx: %llu, ", node->meta & IS_BLACK ? 'B' : 'R', node, node->start, node->end, node->data); + printf(", (%c/%p) %lx-%lx: %" PRIu64 ", ", node->meta & IS_BLACK ? 'B' : 'R', node, node->start, node->end, node->data); if (node->right && (node->right->meta & IS_LEFT)) { printf("<invalid meta>"); } else if (node->right && (node->right->parent != node)) { |