Remove nested comments in blake2 (#4173) · pythoncapi/cpython@388cd85 · GitHub
Skip to content

Commit 388cd85

Browse files
zaotiran
authored andcommitted
Remove nested comments in blake2 (python#4173)
Replace occurence of nested comments in blake2 reference implementation with preprocessor directive for disabling unused code. `blake2s-load-xop.h` is conditionally pulled in only on chips with XOP support, among others the AMD Bulldozer. The malformed comments in the source file breaks the build of `hashlib`'s `_blake2` on GCC 6.3.0. Official reference code on github uses `#if` so this change should be uncontroversial.
1 parent 8bc7d63 commit 388cd85

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Modules/_blake2/impl/blake2s-load-xop.h

Lines changed: 4 additions & 2 deletions

0 commit comments

Comments
 (0)