From 912924a634222f35e7e9d2882036d36207ce1a2c Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Tue, 28 Apr 2015 15:10:32 +0900 Subject: [PATCH] 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. --- src/lib/eina/eina_stringshare.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.34.1