From: Carsten Haitzler (Rasterman) Date: Tue, 28 Apr 2015 06:10:32 +0000 (+0900) Subject: eina stringshare - make short internal string refs ints not shorts X-Git-Tag: v1.14.0~51 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=912924a634222f35e7e9d2882036d36207ce1a2c;p=platform%2Fupstream%2Fefl.git 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. --- diff --git a/src/lib/eina/eina_stringshare.c b/src/lib/eina/eina_stringshare.c index b69d3959ea..c935b5f7a7 100644 --- a/src/lib/eina/eina_stringshare.c +++ b/src/lib/eina/eina_stringshare.c @@ -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);