diff options
-rw-r--r-- | src/keeper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keeper.c b/src/keeper.c index 418b5fb..72ccedb 100644 --- a/src/keeper.c +++ b/src/keeper.c | |||
@@ -625,7 +625,7 @@ struct s_Keeper* keeper_acquire( void const* ptr) | |||
625 | * | 625 | * |
626 | * Pointers are often aligned by 8 or so - ignore the low order bits | 626 | * Pointers are often aligned by 8 or so - ignore the low order bits |
627 | */ | 627 | */ |
628 | unsigned int i= ((uintptr_t)(ptr) >> 3) % GNbKeepers; | 628 | unsigned int i = ((unsigned int)(ptr) >> 3) % GNbKeepers; |
629 | struct s_Keeper *K= &GKeepers[i]; | 629 | struct s_Keeper *K= &GKeepers[i]; |
630 | 630 | ||
631 | MUTEX_LOCK( &K->lock_); | 631 | MUTEX_LOCK( &K->lock_); |