D1: std.md5: corrections for the given example

notna notna.remove.this at ist-einmalig.de
Wed Sep 16 09:36:32 PDT 2009


Hi.

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, cast(uint)1, buffer.sizeof, file)) != 0)
                            ^^^  ^^^^^^^^^^

Someone may want to check & adopt this in the std.md5 module...

Thanks & regards
notna


More information about the Digitalmars-d-learn mailing list