Skip to content

Commit

Permalink
mingw: Fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsuhiro-t committed Nov 16, 2017
1 parent 5e7976a commit a005f29
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/crypto_hash.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include "crypto_hash.h"
#include "crypto_endian.h"
#include "a2functional.h"

#include <cstring>
#include <stdexcept>
Expand Down Expand Up @@ -1055,22 +1056,22 @@ std::unique_ptr<Algorithm> crypto::hash::create(Algorithms algo)
{
switch (algo) {
case algoMD5:
return make_unique<MD5>();
return aria2::make_unique<MD5>();

case algoSHA1:
return make_unique<SHA1>();
return aria2::make_unique<SHA1>();

case algoSHA224:
return make_unique<SHA224>();
return aria2::make_unique<SHA224>();

case algoSHA256:
return make_unique<SHA256>();
return aria2::make_unique<SHA256>();

case algoSHA384:
return make_unique<SHA384>();
return aria2::make_unique<SHA384>();

case algoSHA512:
return make_unique<SHA512>();
return aria2::make_unique<SHA512>();

default:
throw std::domain_error("Invalid hash algorithm");
Expand Down

0 comments on commit a005f29

Please sign in to comment.