Skip to content

Commit c9eb7f4

Browse files
committed
minor update of 64-bit checker
1 parent 93816a6 commit c9eb7f4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/check64bit.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ void Check64BitPortability::pointerassignment()
105105
if (rhstype->pointer >= 1U &&
106106
lhstype->pointer == 0U &&
107107
lhstype->originalTypeName.empty() &&
108-
lhstype->type == ValueType::Type::INT)
108+
lhstype->isIntegral() &&
109+
lhstype->type >= ValueType::Type::CHAR &&
110+
lhstype->type <= ValueType::Type::INT)
109111
assignmentAddressToIntegerError(tok);
110112
}
111113
}

0 commit comments

Comments
 (0)