From cf87966cfdcb678122b5e2b6b6448010e7cd6931 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Fri, 16 Dec 2011 23:15:11 +0000 Subject: [PATCH] In contrib/gperf/src/output.cc, use the correct printf length modifier for a ptrdiff_t. MFC after: 1 week --- contrib/gperf/src/output.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/gperf/src/output.cc b/contrib/gperf/src/output.cc index c0c8e6ca38b5..2732057326ba 100644 --- a/contrib/gperf/src/output.cc +++ b/contrib/gperf/src/output.cc @@ -1300,7 +1300,7 @@ Output::output_lookup_array () const if (option[DEBUG]) fprintf (stderr, - "dup_ptr[%d]: hash_value = %d, index = %d, count = %d\n", + "dup_ptr[%td]: hash_value = %d, index = %d, count = %d\n", dup_ptr - duplicates, dup_ptr->hash_value, dup_ptr->index, dup_ptr->count);