From db352941b242915630eff6960a8cc34247eda2b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sanjin=20Tro=C5=A1elj?= Date: Mon, 27 Jan 2014 18:22:40 +0100 Subject: [PATCH] VS2010 build: Prepare findnonce.c Cherry-picked by veox. --- findnonce.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/findnonce.c b/findnonce.c index fbe58b5e..02af8f7d 100644 --- a/findnonce.c +++ b/findnonce.c @@ -11,7 +11,6 @@ #include "config.h" #include -#include #include #include @@ -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)) {