Skip to content

Commit f73555b

Browse files
authored
Use size_t instead of uint for data indexing, because it hangs with files > 4g on x64
1 parent 36e9775 commit f73555b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

std/digest/md.d

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,8 @@ struct MD5
295295
*/
296296
void put(scope const(ubyte)[] data...) @trusted pure nothrow @nogc
297297
{
298-
uint i, index, partLen;
298+
size_t i;
299+
uint index, partLen;
299300
auto inputLen = data.length;
300301

301302
//Compute number of bytes mod 64

0 commit comments

Comments
 (0)