diff options
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 { |