HomePhabricator

Make CNetAddr::GetHash() return an unsigned val.
4843b55fd167Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Make CNetAddr::GetHash() return an unsigned val.

This prevents an undefined operation in main.cpp, when shifting the hash value
left by 32 bits.
Shifting a signed int left into the sign bit is undefined in C++11.

Details

Provenance
Ricardo M. Correia <rcorreia@wizy.org>Authored on May 13 2012, 19:31
deadalnixPushed on May 14 2017, 22:04
Parents
rABC1653f97c8f3c: Do not consider blocked networks local
Branches
Unknown
Tags
Unknown

Event Timeline

Ricardo M. Correia <rcorreia@wizy.org> committed rABC4843b55fd167: Make CNetAddr::GetHash() return an unsigned val. (authored by Ricardo M. Correia <rcorreia@wizy.org>).May 13 2012, 19:42