n = PerlIO_read(fh, buffer, missing);
if (n >= 0)
MD5Update(context, buffer, n);
- else {
- if (PerlIO_error(fh)) {
- croak("Reading from filehandle failed");
- }
+ else
XSRETURN(1); /* self */
- }
}
/* Process blocks until EOF or error */
MD5Update(context, buffer, n);
}
- if (PerlIO_error(fh)) {
+ if (n < 0 && PerlIO_error(fh)) {
croak("Reading from filehandle failed");
}
}
fcc48d6bb88ca8065bf9ddfcb9e7483e Changes
0565ec21b15c0f23f4c51fb327c8926d README
1965beb0e48253b694220fbb5d6230f5 MD5.pm
-604944842f1a23778f00fed5ca45b17f MD5.xs
+339e7a6915dcd67ff5bb583a7568fbb6 MD5.xs
276da0aa4e9a08b7fe09430c9c5690aa rfc1321.txt
EOT
} elsif ("\n" eq "\015") { # MacOS
f161f474603c54a0093ad2f6f93be33b Changes
6c950a0211a5a28f023bb482037698cd README
18178c90bc13d6824f6c96973b6e9433 MD5.pm
-5b88336d811edee7de8648d86d498b6e MD5.xs
+1f004206b000efac36e9890aac6f0281 MD5.xs
754b9db19f79dbc4992f7166eb0f37ce rfc1321.txt
EOT
} else {
029fa5059ba0b2175cee09ab5d9b7b73 Changes
6c950a0211a5a28f023bb482037698cd README
18178c90bc13d6824f6c96973b6e9433 MD5.pm
-5b88336d811edee7de8648d86d498b6e MD5.xs
+1f004206b000efac36e9890aac6f0281 MD5.xs
754b9db19f79dbc4992f7166eb0f37ce rfc1321.txt
EOT
}