From 8e143b4ec447a7ee6c501e7488a3c94db7e6a035 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 3 Jan 2013 04:19:12 -0600 Subject: [PATCH] Minor --- src/fcobjs.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/fcobjs.c b/src/fcobjs.c index 1aa4a77..146ca70 100644 --- a/src/fcobjs.c +++ b/src/fcobjs.c @@ -34,7 +34,10 @@ FcObjectTypeLookup (register const char *str, register unsigned int len); #include -static fc_atomic_int_t next_id = FC_MAX_BASE_OBJECT + 1; +/* The 1000 is to leave some room for future added internal objects, such + * that caches from newer fontconfig can still be used with older fontconfig + * without getting confused. */ +static fc_atomic_int_t next_id = FC_MAX_BASE_OBJECT + 1000; struct FcObjectOtherTypeInfo { struct FcObjectOtherTypeInfo *next; FcObjectType object;