Skip to content

Commit

Permalink
Update hash2sum.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimov committed Oct 19, 2024
1 parent c1c0029 commit 0aa8078
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion example/hash2sum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ int main( int argc, char const* argv[] )

mp_for_each< mp_iota<mp_size<hashes>> >([&](auto I){

if( hash == names[ I ] )
if( hash == names[I] )
{
using Hash = mp_at_c<hashes, I>;

Expand All @@ -132,5 +132,6 @@ int main( int argc, char const* argv[] )
if( !found )
{
std::fprintf( stderr, "hash2sum: unknown hash name '%s'\n", hash.c_str() );
return 1;
}
}

0 comments on commit 0aa8078

Please sign in to comment.