1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-23 13:04:29 +00:00

Fix broken assert in algo bencher

This commit is contained in:
Znort 987 2011-08-15 11:49:06 +02:00
parent 6fd06387b3
commit 84b0467cb2

2
main.c
View File

@ -399,7 +399,7 @@ static double bench_algo_stage3(
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
}; };
struct work work __attribute__((aligned(128))); struct work work __attribute__((aligned(128)));
assert(sizeof(work) == sizeof(some_block)); assert(sizeof(work) <= sizeof(some_block));
memcpy(&work, &some_block, sizeof(work)); memcpy(&work, &some_block, sizeof(work));
struct work_restart dummy; struct work_restart dummy;