Merge #9916: Fix msvc compiler error C4146 (minus operator applied to unsigned type)
Summary:
backport PR9916 https://github.com/bitcoin/bitcoin/pull/9916/files
8e0720b Fix msvc compiler error C4146 (unary minus operator applied to unsigned type) (kobake)
292112f Fix msvc compiler error C4146 (minus operator applied to unsigned type) (kobake)
Tree-SHA512: 25f408daf7bf9ffe4b8b4bd62f6f6d326219189a9faf8f8c0a135c5a0cb0511af765aa2b6087a091c8863c701289bda49a2379b00cd9b10854d316a5c3fc3f8e
Test Plan: make check
Reviewers: jasonbcox, Fabien, #bitcoin_abc, deadalnix
Reviewed By: jasonbcox, #bitcoin_abc
Differential Revision: https://reviews.bitcoinabc.org/D2988