From 027789b47524e7fd079e10420afd81eeb7f45954 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 23 May 2015 02:00:38 +0000 Subject: [PATCH] fix test_primitives build --- test/test_primitives.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_primitives.cpp b/test/test_primitives.cpp index b852318a2..0c9b492ac 100644 --- a/test/test_primitives.cpp +++ b/test/test_primitives.cpp @@ -318,8 +318,8 @@ int test_main() address::from_string("255.255.0.0", ec))); // CIDR distance test - h1 = to_hash("0123456789abcdef01232456789abcdef0123456"); - h2 = to_hash("0123456789abcdef01232456789abcdef0123456"); + sha1_hash h1 = to_hash("0123456789abcdef01232456789abcdef0123456"); + sha1_hash h2 = to_hash("0123456789abcdef01232456789abcdef0123456"); TEST_CHECK(common_bits(&h1[0], &h2[0], 20) == 160); h2 = to_hash("0120456789abcdef01232456789abcdef0123456"); TEST_CHECK(common_bits(&h1[0], &h2[0], 20) == 14);