Skip to content

Commit

Permalink
Fix deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sj-i committed Dec 22, 2023
1 parent 7f8bb5e commit 345b903
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Lib/Elf/Structure/Elf64/Elf64GnuHashTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function getNumberOfSymbols(): int

public function checkBloomFilter(int $hash): bool
{
$bloom = $this->bloom[($hash / self::ELFCLASS_BITS) % $this->bloom_size];
$bloom = $this->bloom[(int)($hash / self::ELFCLASS_BITS) % $this->bloom_size];
$bloom_hash1 = $hash % self::ELFCLASS_BITS;
$bloom_hash2 = ($hash >> $this->bloom_shift) % self::ELFCLASS_BITS;
return $bloom->checkBitSet($bloom_hash1) and $bloom->checkBitSet($bloom_hash2);
Expand Down

0 comments on commit 345b903

Please sign in to comment.