aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib/src/tests/zcurve/zcurve_ranges_test.cpp
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2019-03-13 20:57:45 +0100
committerTor Egge <Tor.Egge@broadpark.no>2019-03-13 20:57:45 +0100
commite26cf86e1187aebf739991fab627c0534702c94d (patch)
treecfe5f78b8f8ca75dad9ee397588c1203419d341b /vespalib/src/tests/zcurve/zcurve_ranges_test.cpp
parenta77f7b0750b0ce0030e77a21f8b03aa0e2399bdd (diff)
Fix format strings in vespalib module.
Diffstat (limited to 'vespalib/src/tests/zcurve/zcurve_ranges_test.cpp')
-rw-r--r--vespalib/src/tests/zcurve/zcurve_ranges_test.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/vespalib/src/tests/zcurve/zcurve_ranges_test.cpp b/vespalib/src/tests/zcurve/zcurve_ranges_test.cpp
index d4acbf3bd30..b0af41667c1 100644
--- a/vespalib/src/tests/zcurve/zcurve_ranges_test.cpp
+++ b/vespalib/src/tests/zcurve/zcurve_ranges_test.cpp
@@ -2,6 +2,7 @@
#include <vespa/vespalib/testkit/test_kit.h>
#include <vespa/vespalib/geo/zcurve.h>
#include <vector>
+#include <cinttypes>
typedef vespalib::geo::ZCurve Z;
@@ -12,9 +13,9 @@ bool inside(int x, int y, const Z::RangeVector &ranges) {
return true;
}
}
- fprintf(stderr, "FAILED: (%d, %d) -> (%ld) not in:\n", x, y, z);
+ fprintf(stderr, "FAILED: (%d, %d) -> (%" PRId64 ") not in:\n", x, y, z);
for (auto range: ranges) {
- fprintf(stderr, " [%ld, %ld]\n", range.min(), range.max());
+ fprintf(stderr, " [%" PRId64 ", %" PRId64 "]\n", range.min(), range.max());
}
return false;
}