mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-26 06:24:17 +00:00
Fix warnings.
This commit is contained in:
parent
67be00e41e
commit
be5a20c8d6
@ -289,14 +289,14 @@ static bool avalon_decode_nonce(struct thr_info *thr, struct avalon_result *ar,
|
|||||||
{
|
{
|
||||||
struct cgpu_info *avalon;
|
struct cgpu_info *avalon;
|
||||||
struct avalon_info *info;
|
struct avalon_info *info;
|
||||||
int avalon_get_work_count;
|
|
||||||
struct work *work;
|
struct work *work;
|
||||||
|
|
||||||
avalon = thr->cgpu;
|
avalon = thr->cgpu;
|
||||||
if (unlikely(!avalon->works))
|
if (unlikely(!avalon->works))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
work = find_queued_work_bymidstate(avalon, ar->midstate, 32, ar->data, 64, 12);
|
work = find_queued_work_bymidstate(avalon, (char *)ar->midstate, 32,
|
||||||
|
(char *)ar->data, 64, 12);
|
||||||
if (!work)
|
if (!work)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user