You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-arch/p7zip/files/p7zip-9.20.1-long_rar_pwd.p...

18 lines
805 B

--- ./CPP/7zip/Crypto/Sha1.cpp 2010-10-20 06:56:08.000000000 +0200
+++ CPP/7zip/Crypto/Sha1.cpp.new 2013-09-15 09:19:51.000000000 +0200
@@ -148,10 +148,10 @@
for (int i = 0; i < kBlockSizeInWords; i++)
{
UInt32 d = _buffer[i];
- data[i * 4 + 0 - kBlockSize] = (Byte)(d);
- data[i * 4 + 1 - kBlockSize] = (Byte)(d >> 8);
- data[i * 4 + 2 - kBlockSize] = (Byte)(d >> 16);
- data[i * 4 + 3 - kBlockSize] = (Byte)(d >> 24);
+ data[(int)i * 4 + 0 - (int)kBlockSize] = (Byte)(d);
+ data[(int)i * 4 + 1 - (int)kBlockSize] = (Byte)(d >> 8);
+ data[(int)i * 4 + 2 - (int)kBlockSize] = (Byte)(d >> 16);
+ data[(int)i * 4 + 3 - (int)kBlockSize] = (Byte)(d >> 24);
}
returnRes = rar350Mode;
}