Skip to content

Commit

Permalink
Fix small issues with build
Browse files Browse the repository at this point in the history
  • Loading branch information
blinkhash committed Jun 7, 2022
1 parent 09b5943 commit 6119b4d
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion algorithms/main/common/cryptonote/cryptonight.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
if (variant == 1 && len < 43) \
{ \
fprintf(stderr, "Cryptonight variant 1 needs at least 43 bytes of data"); \
_exit(1); \
exit(1); \
} \
const uint64_t tweak1_2 = (variant == 1) ? *(const uint64_t*)(((const uint8_t*)input)+35) ^ ctx->state.hs.w[24] : 0

Expand Down
2 changes: 1 addition & 1 deletion algorithms/main/common/cryptonote/cryptonight_dark.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
if (variant == 1 && len < 43) \
{ \
fprintf(stderr, "Cryptonight variant 1 needs at least 43 bytes of data"); \
_exit(1); \
exit(1); \
} \
const uint64_t tweak1_2 = (variant == 1) ? *(const uint64_t*)(((const uint8_t*)input)+35) ^ ctx->state.hs.w[24] : 0

Expand Down
2 changes: 1 addition & 1 deletion algorithms/main/common/cryptonote/cryptonight_dark_lite.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
if (variant == 1 && len < 43) \
{ \
fprintf(stderr, "Cryptonight variant 1 needs at least 43 bytes of data"); \
_exit(1); \
exit(1); \
} \
const uint64_t tweak1_2 = (variant == 1) ? *(const uint64_t*)(((const uint8_t*)input)+35) ^ ctx->state.hs.w[24] : 0

Expand Down
2 changes: 1 addition & 1 deletion algorithms/main/common/cryptonote/cryptonight_fast.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
if (variant == 1 && len < 43) \
{ \
fprintf(stderr, "Cryptonight variant 1 needs at least 43 bytes of data"); \
_exit(1); \
exit(1); \
} \
const uint64_t tweak1_2 = (variant == 1) ? *(const uint64_t*)(((const uint8_t*)input)+35) ^ ctx->state.hs.w[24] : 0

Expand Down
2 changes: 1 addition & 1 deletion algorithms/main/common/cryptonote/cryptonight_lite.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
if (variant == 1 && len < 43) \
{ \
fprintf(stderr, "Cryptonight variant 1 needs at least 43 bytes of data"); \
_exit(1); \
exit(1); \
} \
const uint64_t tweak1_2 = (variant == 1) ? *(const uint64_t*)(((const uint8_t*)input)+35) ^ ctx->state.hs.w[24] : 0

Expand Down
4 changes: 2 additions & 2 deletions algorithms/main/common/cryptonote/cryptonight_soft_shell.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
if (variant == 1 && len < 43) \
{ \
fprintf(stderr, "Cryptonight variant 1 needs at least 43 bytes of data"); \
_exit(1); \
exit(1); \
} \
const uint64_t tweak1_2 = (variant == 1) ? *(const uint64_t*)(((const uint8_t*)input)+35) ^ state.hs.w[24] : 0

Expand Down Expand Up @@ -196,7 +196,7 @@ void cryptonight_soft_shell_hash(const char* input, char* output, uint32_t len,
uint8_t c[AES_BLOCK_SIZE];
uint8_t aes_key[AES_KEY_SIZE];
oaes_ctx* aes_ctx;

#if defined(_MSC_VER)
uint8_t *long_state = (uint8_t *)_malloca(scratchpad);
#else
Expand Down
2 changes: 1 addition & 1 deletion algorithms/main/common/cryptonote/cryptonight_turtle.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
if (variant == 1 && len < 43) \
{ \
fprintf(stderr, "Cryptonight variant 1 needs at least 43 bytes of data"); \
_exit(1); \
exit(1); \
} \
const uint64_t tweak1_2 = (variant == 1) ? *(const uint64_t*)(((const uint8_t*)input)+35) ^ ctx->state.hs.w[24] : 0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
if (variant == 1 && len < 43) \
{ \
fprintf(stderr, "Cryptonight variant 1 needs at least 43 bytes of data"); \
_exit(1); \
exit(1); \
} \
const uint64_t tweak1_2 = (variant == 1) ? *(const uint64_t*)(((const uint8_t*)input)+35) ^ ctx->state.hs.w[24] : 0

Expand Down
1 change: 1 addition & 0 deletions algorithms/main/verthash/verthash.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <time.h>
#include <string.h>

#include "verthash.h"
#include "../common/sha3/sha3.h"

#ifdef _MSC_VER
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "foundation-multi-hashing",
"version": "0.1.2",
"version": "0.1.3",
"main": "./index.js",
"keywords": [
"scrypt",
Expand Down

0 comments on commit 6119b4d

Please sign in to comment.