Bug 3324 – d1: std.md5: given example not working

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D1 (retired)
Platform
Other
OS
Windows
Creation time
2009-09-17T06:35:00Z
Last change time
2011-01-09T12:29:49Z
Assigned to
bugzilla
Creator
more.more

Comments

Comment #0 by more.more — 2009-09-17T06:35:02Z
In the given example of the D1 std.md5, this line can be found: while ((len = fread(buffer, 1, buffer.sizeof, file)) != 0) This isn't working here (DMD v1.042, Windows XP Pro). I had to replace it with: while ((len = fread(buffer.ptr, 1, buffer.sizeof, file)) != 0) ^^^
Comment #1 by more.more — 2009-09-18T23:54:50Z
*** Issue 3331 has been marked as a duplicate of this issue. ***
Comment #2 by andrei — 2011-01-09T08:52:03Z
Reassigning D1 issue to Walter.
Comment #3 by braddr — 2011-01-09T12:29:49Z
Fixed in r2291.