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
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Parents
rSTAGING1653f97c8f3c: Do not consider blocked networks local
Branches
Unknown
Tags
Unknown

Event Timeline

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