Fix -Wstring-plus-int warning on clang

This commit is contained in:
Jack Grigg
2018-05-01 14:55:47 +01:00
parent 23f8b30c88
commit 1f9dfbb9f0
4 changed files with 5 additions and 5 deletions

View File

@@ -470,7 +470,7 @@ void CTxMemPool::checkNullifiers(NullifierType type) const
mapToUse = &mapSaplingNullifiers;
break;
default:
throw runtime_error("Unknown nullifier type " + type);
throw runtime_error("Unknown nullifier type");
}
for (const auto& entry : *mapToUse) {
uint256 hash = entry.second->GetHash();
@@ -590,7 +590,7 @@ bool CTxMemPool::nullifierExists(const uint256& nullifier, NullifierType type) c
case SAPLING_NULLIFIER:
return mapSaplingNullifiers.count(nullifier);
default:
throw runtime_error("Unknown nullifier type " + type);
throw runtime_error("Unknown nullifier type");
}
}