From fae9c2159c00d8f594715f68182781885e82a621 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Wed, 30 Dec 2015 20:59:22 +0100 Subject: [PATCH] Fix Travis. The 'Assign integer to pointer' checker should allow 0. --- lib/check64bit.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/check64bit.cpp b/lib/check64bit.cpp index 86e4324a5..ebdbcdf13 100644 --- a/lib/check64bit.cpp +++ b/lib/check64bit.cpp @@ -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)