We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93816a6 commit c9eb7f4Copy full SHA for c9eb7f4
1 file changed
lib/check64bit.cpp
@@ -105,7 +105,9 @@ void Check64BitPortability::pointerassignment()
105
if (rhstype->pointer >= 1U &&
106
lhstype->pointer == 0U &&
107
lhstype->originalTypeName.empty() &&
108
- lhstype->type == ValueType::Type::INT)
+ lhstype->isIntegral() &&
109
+ lhstype->type >= ValueType::Type::CHAR &&
110
+ lhstype->type <= ValueType::Type::INT)
111
assignmentAddressToIntegerError(tok);
112
}
113
0 commit comments