Skip to content

Commit

Permalink
VS2010 build: Prepare findnonce.c
Browse files Browse the repository at this point in the history
Cherry-picked by veox.
  • Loading branch information
Sanjin Trošelj authored and veox committed Jan 27, 2014
1 parent 8c0e250 commit db35294
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions findnonce.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include "config.h"

#include <stdio.h>
#include <inttypes.h>
#include <pthread.h>
#include <string.h>

Expand Down Expand Up @@ -213,7 +212,7 @@ static void *postcalc_hash(void *userdata)

void postcalc_hash_async(struct thr_info *thr, struct work *work, uint32_t *res)
{
struct pc_data *pcd = malloc(sizeof(struct pc_data));
struct pc_data *pcd = (struct pc_data *)malloc(sizeof(struct pc_data));
int buffersize;

if (unlikely(!pcd)) {
Expand Down

0 comments on commit db35294

Please sign in to comment.