Fix signed conversion warnings.

This commit is contained in:
Daniel James committed 2016-10-05 09:45:53 +01:00
1 parent a0dc86ecbc
commit 71d19820ac
15 files changed
+61 -40

No files matched your search

+5 -3
View File
@@ -146,14 +146,16 @@ namespace exception
UNORDERED_EPOINT("Mock hash function.");
}
int result;
switch(tag_) {
case 1:
return x.tag1_;
result = x.tag1_;
case 2:
return x.tag2_;
result = x.tag2_;
default:
return x.tag1_ + x.tag2_;
result = x.tag1_ + x.tag2_;
}
return static_cast<std::size_t>(result);
}
friend bool operator==(hash const& x1, hash const& x2) {