diff options
author | Quipyowert2 <38995150+Quipyowert2@users.noreply.github.com> | 2020-02-12 21:04:53 -0800 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2020-02-13 21:36:37 +0100 |
commit | acb3d10832c92c9f93c3a4d50b00774274bac8c7 (patch) | |
tree | b7d61ff3e9ca61c124fe74831f48e0e00f35ca29 /src/pathfinder/npf | |
parent | 2196cd3cf87f2fa164ad746b87e2686e2b207158 (diff) | |
download | openttd-acb3d10832c92c9f93c3a4d50b00774274bac8c7.tar.xz |
Codechange: Format unsigned integers with %u instead of %i or %d.
Diffstat (limited to 'src/pathfinder/npf')
-rw-r--r-- | src/pathfinder/npf/queue.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/pathfinder/npf/queue.cpp b/src/pathfinder/npf/queue.cpp index 64ea3bfca..960cda8e5 100644 --- a/src/pathfinder/npf/queue.cpp +++ b/src/pathfinder/npf/queue.cpp @@ -305,16 +305,16 @@ void Hash::PrintStatistics() const } printf( "---\n" - "Hash size: %d\n" - "Nodes used: %d\n" - "Non empty buckets: %d\n" - "Max collision: %d\n", + "Hash size: %u\n" + "Nodes used: %u\n" + "Non empty buckets: %u\n" + "Max collision: %u\n", this->num_buckets, this->size, used_buckets, max_collision ); printf("{ "); for (i = 0; i <= max_collision; i++) { if (usage[i] > 0) { - printf("%d:%d ", i, usage[i]); + printf("%u:%u ", i, usage[i]); #if 0 if (i > 0) { uint j; |