Fix signed shift by 31 bits
Summary: Shifting a signed integer by 31 bits is undefined behavior.
Test Plan:
arc lint src/test/op_reversebytes_tests.cpp
Reviewers: #bitcoin_abc, majcosta
Reviewed By: #bitcoin_abc, majcosta
Differential Revision: https://reviews.bitcoinabc.org/D7141