eina stringshare - make short internal string refs ints not shorts
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Tue, 28 Apr 2015 06:10:32 +0000 (15:10 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Tue, 28 Apr 2015 06:10:32 +0000 (15:10 +0900)
this should fix T2088 - at the expense of more memory but a short was
just too little here.

src/lib/eina/eina_stringshare.c

index b69d395..c935b5f 100644 (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);