eina stringshare - make short internal string refs ints not shorts

this should fix T2088 - at the expense of more memory but a short was
just too little here.
This commit is contained in:
Carsten Haitzler 2015-04-28 15:10:32 +09:00
parent f03cf3dba3
commit 912924a634
1 changed files with 2 additions and 2 deletions

View File

@ -110,7 +110,7 @@ struct _Eina_Stringshare_Small_Bucket
/* separate arrays for faster lookups */
const char **strings;
unsigned char *lengths;
unsigned short *references;
unsigned int *references;
int count;
int size;
};
@ -413,7 +413,7 @@ _eina_stringshare_small_bucket_dump(Eina_Stringshare_Small_Bucket *bucket,
{
const char **s = bucket->strings;
unsigned char *l = bucket->lengths;
unsigned short *r = bucket->references;
unsigned int *r = bucket->references;
int i;
di->used += sizeof(*bucket);