Skip to content

Commit

Permalink
fix a few vstudio warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tpruvot committed May 21, 2016
1 parent ebbc7e9 commit 0daba68
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion algo/blake.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ void blakehash(void *state, const void *input)
{
sph_blake256_context ctx;

uint8_t hash[64];
uint8_t *ending = (uint8_t*) input;
ending += 64;

Expand Down
1 change: 0 additions & 1 deletion algo/blakecoin.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ void blakecoinhash(void *state, const void *input)
{
sph_blake256_context ctx;

uint8_t hash[64];
uint8_t *ending = (uint8_t*) input;
ending += 64;

Expand Down
1 change: 0 additions & 1 deletion algo/neoscrypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,6 @@ int scanhash_neoscrypt(int thr_id, struct work *work, uint32_t max_nonce, uint64
uint32_t profile)
{
uint32_t _ALIGN(128) hash[8];
uint32_t _ALIGN(128) endiandata[20];
uint32_t *pdata = work->data;
uint32_t *ptarget = work->target;

Expand Down
2 changes: 1 addition & 1 deletion cpu-miner.c
Original file line number Diff line number Diff line change
Expand Up @@ -1683,7 +1683,7 @@ static void stratum_gen_work(struct stratum_ctx *sctx, struct work *work)
// extradata
for (i = 0; i < sctx->xnonce1_size/4; i++)
work->data[36 + i] = extradata[i];
for (i = 36 + sctx->xnonce1_size/4; i < 45; i++)
for (i = 36 + (int) sctx->xnonce1_size/4; i < 45; i++)
work->data[i] = 0;
work->data[37] = (rand()*4) << 8;
sctx->bloc_height = work->data[32];
Expand Down
2 changes: 1 addition & 1 deletion util.c
Original file line number Diff line number Diff line change
Expand Up @@ -1892,7 +1892,7 @@ static bool stratum_benchdata(json_t *result, json_t *params, int thr_id)
json_object_set_new(val, "device", json_string(cpuname));
json_object_set_new(val, "vendorid", json_string(vendorid));
json_object_set_new(val, "arch", json_string(arch));
json_object_set_new(val, "freq", json_integer(cpufreq));
json_object_set_new(val, "freq", json_integer((uint64_t)cpufreq));
json_object_set_new(val, "memf", json_integer(0));
json_object_set_new(val, "power", json_integer(0));
json_object_set_new(val, "khashes", json_real((double)global_hashrate / 1000.0));
Expand Down

0 comments on commit 0daba68

Please sign in to comment.