From 5af9907fee05f882f8d2422e47198ebf61d97bb7 Mon Sep 17 00:00:00 2001 From: Darrell Anderson Date: Wed, 21 Mar 2012 22:55:48 -0500 Subject: Update ktorrent package to 2.2.8 and fix internal geoip database. This resolves bug report 363. --- libktorrent/util/sha1hashgen.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'libktorrent/util') diff --git a/libktorrent/util/sha1hashgen.cpp b/libktorrent/util/sha1hashgen.cpp index 5c0d9f5..bacca62 100644 --- a/libktorrent/util/sha1hashgen.cpp +++ b/libktorrent/util/sha1hashgen.cpp @@ -139,12 +139,11 @@ namespace bt { if (i < 16) { - w[i] = ntohl(*(const Uint32*)(chunk + (4*i))); - /* w[i] = (chunk[4*i] << 24) | + // w[i] = ntohl(*(const Uint32*)(chunk + (4*i))); <- crashes on sparc + w[i] = (chunk[4*i] << 24) | (chunk[4*i + 1] << 16) | (chunk[4*i + 2] << 8) | chunk[4*i + 3]; - */ } else { -- cgit v1.2.1