summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-04-28 15:10:32 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-04-28 15:10:32 +0900
commit912924a634222f35e7e9d2882036d36207ce1a2c (patch)
treef9e4b13bfd6e1a54efa0e8cbb6d8bdb01c4132bf /src/lib
parentf03cf3dba3f968839778541fd89ec3f3007fb559 (diff)
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.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/eina/eina_stringshare.c4
1 files 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
110 /* separate arrays for faster lookups */ 110 /* separate arrays for faster lookups */
111 const char **strings; 111 const char **strings;
112 unsigned char *lengths; 112 unsigned char *lengths;
113 unsigned short *references; 113 unsigned int *references;
114 int count; 114 int count;
115 int size; 115 int size;
116}; 116};
@@ -413,7 +413,7 @@ _eina_stringshare_small_bucket_dump(Eina_Stringshare_Small_Bucket *bucket,
413{ 413{
414 const char **s = bucket->strings; 414 const char **s = bucket->strings;
415 unsigned char *l = bucket->lengths; 415 unsigned char *l = bucket->lengths;
416 unsigned short *r = bucket->references; 416 unsigned int *r = bucket->references;
417 int i; 417 int i;
418 418
419 di->used += sizeof(*bucket); 419 di->used += sizeof(*bucket);