summaryrefslogtreecommitdiff
path: root/src/fclist.c
diff options
context:
space:
mode:
authorAkira TAGOH <akira@tagoh.org>2013-06-28 15:04:11 +0900
committerAkira TAGOH <akira@tagoh.org>2013-06-28 15:04:11 +0900
commit197d06c49b01413303f2c92130594daa4fcaa6ad (patch)
tree54cd97ce895636052b51e9a7a6dc838ae769b2df /src/fclist.c
parent38ab7ab2fbd83c0c62e4b78302b5fe89da0cb79e (diff)
downloadfontconfig-197d06c49b01413303f2c92130594daa4fcaa6ad.tar.gz
Add FcTypeUnknown to FcType to avoid comparison of constant -1
This change reverts 9acc14c34a372b54f9075ec3611588298fb2a501 because it doesn't work as expected when building with -fshort-enums which is default for older arms ABIs Thanks for pointing this out, Thomas Klausner, Valery Ushakov, and Martin Husemann
Diffstat (limited to 'src/fclist.c')
-rw-r--r--src/fclist.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fclist.c b/src/fclist.c
index b7ae899..c56e24c 100644
--- a/src/fclist.c
+++ b/src/fclist.c
@@ -252,6 +252,7 @@ FcListValueHash (FcValue *value)
{
FcValue v = FcValueCanonicalize(value);
switch (v.type) {
+ case FcTypeUnknown:
case FcTypeVoid:
return 0;
case FcTypeInteger: