File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ static void blake2b_set_lastblock(hash_state *md)
169169static void blake2b_increment_counter (hash_state * md , ulong64 inc )
170170{
171171 md -> blake2b .t [0 ] += inc ;
172- md -> blake2b .t [1 ] += ( md -> blake2b .t [0 ] < inc ) ;
172+ if ( md -> blake2b .t [0 ] < inc ) md -> blake2b .t [1 ] ++ ;
173173}
174174
175175static void blake2b_init0 (hash_state * md )
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ static void blake2s_set_lastblock(hash_state *md)
161161static void blake2s_increment_counter (hash_state * md , const ulong32 inc )
162162{
163163 md -> blake2s .t [0 ] += inc ;
164- md -> blake2s .t [1 ] += ( md -> blake2s .t [0 ] < inc ) ;
164+ if ( md -> blake2s .t [0 ] < inc ) md -> blake2s .t [1 ] ++ ;
165165}
166166
167167static int blake2s_init0 (hash_state * md )
You can’t perform that action at this time.
0 commit comments