Fix a comparison of constant warning with clang
[platform/upstream/fontconfig.git] / src / fcname.c
index a525345..8d02da7 100644 (file)
@@ -86,7 +86,7 @@ FcObjectValidType (FcObject object, FcType type)
                return FcTrue;
            break;
        default:
-           if (t->type == (unsigned int) -1 || type == t->type)
+           if ((unsigned int) t->type == (unsigned int) -1 || type == t->type)
                return FcTrue;
            break;
        }