/*
- * $XFree86: xc/lib/fontconfig/fc-cache/fc-cache.c,v 1.7 2002/08/11 15:09:33 keithp Exp $
+ * $XFree86: xc/lib/fontconfig/fc-cache/fc-cache.c,v 1.8tsi Exp $
*
* Copyright © 2002 Keith Packard, member of The XFree86 Project, Inc.
*
#include <fontconfig/fontconfig.h>
#include <stdio.h>
+#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
/*
- * $XFree86: xc/lib/fontconfig/src/fclist.c,v 1.10 2002/08/22 07:36:44 keithp Exp $
+ * $XFree86: xc/lib/fontconfig/src/fclist.c,v 1.11tsi Exp $
*
* Copyright © 2000 Keith Packard, member of The XFree86 Project, Inc.
*
case FcTypeCharSet:
return FcCharSetCount (v.u.c);
case FcTypeFTFace:
- return (FcChar32) v.u.f;
+ return (long) v.u.f;
case FcTypeLangSet:
return FcLangSetHash (v.u.l);
}
/*
- * $XFree86: xc/lib/fontconfig/src/fcpat.c,v 1.16tsi Exp $
+ * $XFree86: xc/lib/fontconfig/src/fcpat.c,v 1.17tsi Exp $
*
* Copyright © 2000 Keith Packard, member of The XFree86 Project, Inc.
*
int i;
for (i = 0; i < b->num; i++)
- hash = ((hash << 1) | (hash >> 31)) ^ ((FcChar32) b->elts[i].values);
+ hash = ((hash << 1) | (hash >> 31)) ^ ((long) b->elts[i].values);
return hash;
}