mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-10-13 07:16:09 +00:00
optimization and cleanup
This commit is contained in:
+3
-2
@@ -41,8 +41,9 @@ class BitBuffer{
|
||||
*/
|
||||
public function put($num, $length){
|
||||
|
||||
for($i = 0; $i < $length; $i++){
|
||||
$this->putBit(($num >> ($length - $i - 1))&1 === 1);
|
||||
$i = 0;
|
||||
while($i < $length){
|
||||
$this->putBit(($num >> ($length - $i - 1))&1 === 1); $i++;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user