Change numBits to unsigned IntegerType

This commit is contained in:
Alex Beregszaszi
2018-05-02 23:22:25 -07:00
committed by daniel
parent 2c00ebbee1
commit b34428249a
3 changed files with 10 additions and 9 deletions
+2 -1
View File
@@ -1200,8 +1200,9 @@ bool TypeChecker::visit(VariableDeclarationStatement const& _statement)
string extension;
if (auto type = dynamic_cast<IntegerType const*>(var.annotation().type.get()))
{
int numBits = type->numBits();
unsigned numBits = type->numBits();
bool isSigned = type->isSigned();
solAssert(numBits > 0, "");
string minValue;
string maxValue;
if (isSigned)