From 4395e77cba7e2873b456167f13e70e9fe1dcbd9e Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Mon, 26 Feb 2018 12:22:58 +1300 Subject: [PATCH] xapian-delve: Fix decoding of packed ints --- xapian-core/bin/xapian-delve.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xapian-core/bin/xapian-delve.cc b/xapian-core/bin/xapian-delve.cc index 6e7e51883..c7dfb4ebc 100644 --- a/xapian-core/bin/xapian-delve.cc +++ b/xapian-core/bin/xapian-delve.cc @@ -164,7 +164,7 @@ decode_and_show_value(const string& value) break; case VALUE_PACKED_INT: { unsigned long long i = 0; - for (unsigned ch : value) { + for (unsigned char ch : value) { i = (i << 8) | ch; } cout << i; -- 2.11.4.GIT