diff options
author | Akira TAGOH <akira@tagoh.org> | 2013-11-11 11:53:09 +0900 |
---|---|---|
committer | Akira TAGOH <akira@tagoh.org> | 2013-11-11 11:53:09 +0900 |
commit | 38acb08d9778ebad2bfc3407532adf8f2e8e667e (patch) | |
tree | b7240ca85ed9f8d5e20194f5892bacd32578a97f | |
parent | a4443e64c89256087d40462cfbb482950873e366 (diff) | |
download | fontconfig-38acb08d9778ebad2bfc3407532adf8f2e8e667e.tar.gz |
Fix typo
Use FcTypeUnknown instead of -1 with type casting.
This seems missed when it was changed.
Patch from brian porter
-rw-r--r-- | src/fcxml.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fcxml.c b/src/fcxml.c index bd95580..91d166f 100644 --- a/src/fcxml.c +++ b/src/fcxml.c @@ -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)); |