Skip to content

Commit

Permalink
MD5 abs/std::abs GCC compilation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
superg committed Sep 26, 2022
1 parent 6a883f9 commit 7f90297
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion md5.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ MD5::MD5()
, _hash(DefaultHash())
{
for(uint32_t i = 0; i < 64; ++i)
_k[i] = (uint32_t)floor((UINT64_C(1) << 32) * abs(sin(i + 1)));
_k[i] = (uint32_t)floor((UINT64_C(1) << 32) * std::abs(sin(i + 1)));
}


Expand Down

0 comments on commit 7f90297

Please sign in to comment.