Fix Travis. The 'Assign integer to pointer' checker should allow 0.

This commit is contained in:
Daniel Marjamäki 2015-12-30 20:59:22 +01:00
parent 5216f904e7
commit fae9c2159c
1 changed files with 1 additions and 0 deletions

View File

@ -85,6 +85,7 @@ void Check64BitPortability::pointerassignment()
// Assign integer to pointer..
if (lhstype->pointer >= 1U &&
!tok->astOperand2()->isNumber() &&
rhstype->pointer == 0U &&
rhstype->originalTypeName.empty() &&
rhstype->type == ValueType::Type::INT)