We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78aa96b commit 9f40267Copy full SHA for 9f40267
src/EnumSet.php
@@ -184,8 +184,9 @@ public function count()
184
continue; // fast skip null byte
185
}
186
187
+ $ord = ord($this->bitset[$bytePos]);
188
for ($bitPos = 0; $bitPos < 8; ++$bitPos) {
- if ((ord($this->bitset[$bytePos]) & (1 << $bitPos)) !== 0) {
189
+ if ($ord & (1 << $bitPos)) {
190
++$count;
191
192
@@ -347,8 +348,9 @@ public function getOrdinals()
347
348
349
350
351
352
353
354
$ordinals[] = $bytePos * 8 + $bitPos;
355
356
0 commit comments