Skip to content

Commit d63d6fa

Browse files
committed
sha256: minor undef cleanup
RND is #defined in both the #if and #else case, so move the #undef after the #endif.
1 parent 40b9560 commit d63d6fa

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/hashes/sha2/sha256.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,8 @@ static int s_sha256_compress(hash_state * md, const unsigned char *buf)
168168
RND(S[3],S[4],S[5],S[6],S[7],S[0],S[1],S[2],61,0xa4506ceb);
169169
RND(S[2],S[3],S[4],S[5],S[6],S[7],S[0],S[1],62,0xbef9a3f7);
170170
RND(S[1],S[2],S[3],S[4],S[5],S[6],S[7],S[0],63,0xc67178f2);
171-
172-
#undef RND
173-
174171
#endif
172+
#undef RND
175173

176174
/* feedback */
177175
for (i = 0; i < 8; i++) {

0 commit comments

Comments
 (0)