Skip to content

Commit

Permalink
fix pointer cast
Browse files Browse the repository at this point in the history
  • Loading branch information
tezc committed May 8, 2024
1 parent 0755068 commit 4bc8ade
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ebuckets.c
Original file line number Diff line number Diff line change
Expand Up @@ -1846,7 +1846,7 @@ ExpireAction expireItemCb(eItem item, void *ctx) {
}

ExpireAction expireUpdateThirdItemCb(eItem item, void *ctx) {
uint64_t expTime = (uint64_t) ctx;
uint64_t expTime = (uint64_t) (uintptr_t) ctx;
static int calls = 0;
if ((calls++) == 3) {
ebSetMetaExpTime(&(((MyItem *)item)->mexpire), expTime );
Expand Down

0 comments on commit 4bc8ade

Please sign in to comment.