From e26cf86e1187aebf739991fab627c0534702c94d Mon Sep 17 00:00:00 2001 From: Tor Egge Date: Wed, 13 Mar 2019 20:57:45 +0100 Subject: Fix format strings in vespalib module. --- vespalib/src/tests/zcurve/zcurve_ranges_test.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'vespalib/src/tests/zcurve/zcurve_ranges_test.cpp') 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 #include #include +#include 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; } -- cgit v1.2.3