mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Enable the -Wconversion warning
This commit is contained in:
@@ -368,7 +368,7 @@ RationalNumberType const* TypeProvider::rationalNumber(Literal const& _literal)
|
||||
{
|
||||
size_t const digitCount = _literal.valueWithoutUnderscores().length() - 2;
|
||||
if (digitCount % 2 == 0 && (digitCount / 2) <= 32)
|
||||
compatibleBytesType = fixedBytes(digitCount / 2);
|
||||
compatibleBytesType = fixedBytes(static_cast<unsigned>(digitCount / 2));
|
||||
}
|
||||
|
||||
return rationalNumber(std::get<1>(validLiteral), compatibleBytesType);
|
||||
|
||||
Reference in New Issue
Block a user