mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
- corrected assert
This commit is contained in:
parent
5de93e6acb
commit
3075fc598d
@ -683,7 +683,7 @@ void ExpressionCompiler::appendTypeConversion(Type const& _typeOnStack, Type con
|
|||||||
}
|
}
|
||||||
else if (stackTypeCategory == Type::Category::STRING)
|
else if (stackTypeCategory == Type::Category::STRING)
|
||||||
{
|
{
|
||||||
solAssert(targetTypeCategory == Type::Category::STRING || targetTypeCategory == Type::Category::INTEGER, "Invalid type conversion requested.");
|
solAssert(targetTypeCategory == Type::Category::STRING, "Invalid type conversion requested.");
|
||||||
// nothing to do, strings are high-order-bit-aligned
|
// nothing to do, strings are high-order-bit-aligned
|
||||||
//@todo clear lower-order bytes if we allow explicit conversion to shorter strings
|
//@todo clear lower-order bytes if we allow explicit conversion to shorter strings
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user