Fix typo
Use FcTypeUnknown instead of -1 with type casting. This seems missed when it was changed. Patch from brian porter
This commit is contained in:
parent
a4443e64c8
commit
38acb08d97
|
@ -610,11 +610,11 @@ FcTypecheckValue (FcConfigParse *parse, FcType value, FcType type)
|
||||||
if ((value == FcTypeLangSet && type == FcTypeString) ||
|
if ((value == FcTypeLangSet && type == FcTypeString) ||
|
||||||
(value == FcTypeString && type == FcTypeLangSet))
|
(value == FcTypeString && type == FcTypeLangSet))
|
||||||
return;
|
return;
|
||||||
if (type == (FcType) -1)
|
if (type == FcTypeUnknown)
|
||||||
return;
|
return;
|
||||||
/* It's perfectly fine to use user-define elements in expressions,
|
/* It's perfectly fine to use user-define elements in expressions,
|
||||||
* so don't warn in that case. */
|
* so don't warn in that case. */
|
||||||
if (value == (FcType) -1)
|
if (value == FcTypeUnknown)
|
||||||
return;
|
return;
|
||||||
FcConfigMessage (parse, FcSevereWarning, "saw %s, expected %s",
|
FcConfigMessage (parse, FcSevereWarning, "saw %s, expected %s",
|
||||||
FcTypeName (value), FcTypeName (type));
|
FcTypeName (value), FcTypeName (type));
|
||||||
|
|
Loading…
Reference in New Issue