diff options
Diffstat (limited to 'src/tcache.c')
-rw-r--r-- | src/tcache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tcache.c b/src/tcache.c index c7d4f78..9fe78c3 100644 --- a/src/tcache.c +++ b/src/tcache.c @@ -451,7 +451,7 @@ tcaches_create(tsd_t *tsd, unsigned *r_ind) elm = tcaches_avail; tcaches_avail = tcaches_avail->next; elm->tcache = tcache; - *r_ind = (elm - tcaches) / sizeof(tcaches_t); + *r_ind = elm - tcaches; } else { elm = &tcaches[tcaches_past]; elm->tcache = tcache; |