Permalink
Browse files

Fix the silly way I implemented the list variants

  • Loading branch information...
1 parent 57b89f3 commit 75bfe4926b0ddf91e9b890f851e869dd9d4e3801 Carlin committed Dec 27, 2011
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/Digest/SHA256.pm
View
@@ -73,7 +73,7 @@ multi sub sha256_sum(Str $msg) is export {
}
multi sub sha256_sum(@msg) is export {
- return nqp::p6box_s($PD.sha_sum(@msg.join));
+ return sha256_sum(@msg.join);
}
multi sub sha256_hex(Str $msg) is export {
@@ -82,8 +82,7 @@ multi sub sha256_hex(Str $msg) is export {
}
multi sub sha256_hex(@msg) is export {
- sha256_hex(@msg.join);
- return nqp::p6box_s($PD.sha_hex());
+ return sha256_hex(@msg.join);
}
multi sub sha256_print($sum) is export {

0 comments on commit 75bfe49

Please sign in to comment.