HomePhabricator

Fix -Wcast-align in crypto_hash.cpp

Description

Fix -Wcast-align in crypto_hash.cpp

Summary:
Avoid the C-style cast to get rid of the warning.

This does not change the behavior.

Test Plan:

ninja bitcoin-bench

Check the warning disappeared.

./src/bench/bitcoin-bench -filter=SipHash_32b

Compare the benchmark result with master and check there is no
performance penalty.

Reviewers: #bitcoin_abc, deadalnix, markblundeberg

Reviewed By: #bitcoin_abc, deadalnix, markblundeberg

Subscribers: markblundeberg

Differential Revision: https://reviews.bitcoinabc.org/D4680

Details

Provenance
FabienAuthored on Dec 9 2019, 21:45
FabienPushed on Dec 18 2019, 20:35
Reviewer
Restricted Project
Differential Revision
D4680: Fix -Wcast-align in crypto_hash.cpp
Parents
rABC7a9dbfd6b9e9: [LINTER] Enable new autopep8 rules
Branches
Unknown
Tags
Unknown