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)) {