diff options
author | Darrell Anderson <[email protected]> | 2012-03-21 22:55:48 -0500 |
---|---|---|
committer | Darrell Anderson <[email protected]> | 2012-03-21 22:55:48 -0500 |
commit | 5af9907fee05f882f8d2422e47198ebf61d97bb7 (patch) | |
tree | 5f31682a2cf6cb479b3170ec6d0d79f382397634 /libktorrent/util | |
parent | c6c4865cd4bb5b203de3a0db0cc2182b240570d3 (diff) | |
download | ktorrent-5af9907fee05f882f8d2422e47198ebf61d97bb7.tar.gz ktorrent-5af9907fee05f882f8d2422e47198ebf61d97bb7.zip |
Update ktorrent package to 2.2.8 and fix internal geoip database.
This resolves bug report 363.
Diffstat (limited to 'libktorrent/util')
-rw-r--r-- | libktorrent/util/sha1hashgen.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
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 { |