A better way to convert between uint160 and uint256 types.

This commit is contained in:
JoelKatz
2011-12-15 16:52:50 -08:00
parent 56484476a9
commit 8083b677e2
5 changed files with 24 additions and 27 deletions

View File

@@ -178,7 +178,7 @@ SHAMapItem::SHAMapItem(const uint256& tag, const std::vector<unsigned char>& dat
{ ; }
SHAMapItem::SHAMapItem(const uint160& tag, const std::vector<unsigned char>& data)
: mTag(uint160to256(tag)), mData(data)
: mTag(tag.to256()), mData(data)
{ ; }
SHAMapItem::pointer SHAMap::peekFirstItem()