Skip to content

Commit a3fc834

Browse files
committed
modified function name parameter when passing to thread with class name to evade errors when built on mac environment
1 parent fc1ad5a commit a3fc834

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

hashing/ripemd_160.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -351,12 +351,13 @@ class RIPEMD160 {
351351
E_dash = h_4;
352352

353353
// parallely process the 80 rounds
354-
std::thread compute_for_block_thread(&compute_for_block, this, &A,
355-
&B, &C, &D, &E, &T,
354+
std::thread compute_for_block_thread(&RIPEMD160::compute_for_block,
355+
this, &A, &B, &C, &D, &E, &T,
356356
std::ref(current_block_data));
357357
std::thread compute_for_block_dash_thread(
358-
&compute_for_block_dash, this, &A_dash, &B_dash, &C_dash,
359-
&D_dash, &E_dash, &T_dash, std::ref(current_block_data));
358+
&RIPEMD160::compute_for_block_dash, this, &A_dash, &B_dash,
359+
&C_dash, &D_dash, &E_dash, &T_dash,
360+
std::ref(current_block_data));
360361

361362
compute_for_block_thread.join();
362363
compute_for_block_dash_thread.join();

0 commit comments

Comments
 (0)