Fix typo
authorAkira TAGOH <akira@tagoh.org>
Mon, 11 Nov 2013 02:53:09 +0000 (11:53 +0900)
committerAkira TAGOH <akira@tagoh.org>
Mon, 11 Nov 2013 02:53:09 +0000 (11:53 +0900)
Use FcTypeUnknown instead of -1 with type casting.
This seems missed when it was changed.

Patch from brian porter

src/fcxml.c

index bd95580..91d166f 100644 (file)
@@ -610,11 +610,11 @@ FcTypecheckValue (FcConfigParse *parse, FcType value, FcType type)
        if ((value == FcTypeLangSet && type == FcTypeString) ||
            (value == FcTypeString && type == FcTypeLangSet))
            return;
-       if (type == (FcType) -1)
+       if (type ==  FcTypeUnknown)
            return;
        /* It's perfectly fine to use user-define elements in expressions,
         * so don't warn in that case. */
-       if (value == (FcType) -1)
+       if (value == FcTypeUnknown)
            return;
        FcConfigMessage (parse, FcSevereWarning, "saw %s, expected %s",
                         FcTypeName (value), FcTypeName (type));