Skip to content

Commit

Permalink
Fix Linux and Windows build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tmancey committed Feb 20, 2019
1 parent 74fee31 commit c0505c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion include/bat/confirmations/export.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#if defined(COMPONENT_BUILD)
#if defined(WIN32)
#define CONFIRMATIONS_EXPORT __declspec(dllexport)
#define CONFIRMATIONS_EXPORT __declspec(dllimport)
#else // defined(WIN32)
#define CONFIRMATIONS_EXPORT __attribute__((visibility("default")))
#endif
Expand Down
6 changes: 3 additions & 3 deletions src/security_helper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ std::string Security::Sign(
std::vector<uint8_t> signed_message(crypto_sign_BYTES +
concatenated_message.length());

uint64_t signed_message_size = 0;
unsigned long long signed_message_size = 0;
crypto_sign(&signed_message.front(), &signed_message_size,
(const unsigned char*)concatenated_message.c_str(),
(uint64_t)concatenated_message.length(), &public_key.front());
reinterpret_cast<const unsigned char*>(concatenated_message.c_str()),
concatenated_message.length(), &public_key.front());

std::vector<uint8_t> signature(crypto_sign_BYTES);
std::copy(signed_message.begin(), signed_message.begin() +
Expand Down

0 comments on commit c0505c2

Please sign in to comment.