Update typeconv.c

This commit is contained in:
tomas
2023-01-27 16:53:36 +00:00
committed by GitHub
parent ed909dba1d
commit 1d73c8d259

View File

@@ -238,10 +238,10 @@ void TypeConversion (ExprDesc* Expr, const Type* NewType)
** void pointers, just with warnings.
*/
if (Result.C == TC_PTR_SIGN_DIFF) {
/* Specific warning for pointer signess difference */
/* Specific warning for pointer signedness difference */
if (IS_Get (&WarnPointerSign)) {
TypeCompatibilityDiagnostic (NewType, Expr->Type,
0, "Pointer conversion to '%s' from '%s' changes pointer signess");
0, "Pointer conversion to '%s' from '%s' changes pointer signedness");
}
} else if ((Result.C <= TC_PTR_INCOMPATIBLE ||
(Result.F & TCF_INCOMPATIBLE_QUAL) != 0)) {