Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opal/corelib/number.rb
Original file line number Diff line number Diff line change
@@ -309,7 +309,7 @@ def bit_length
var result = 0,
value = self < 0 ? ~self : self;
while (value != 0) {
while (value > 0) {
result += 1;
value >>= 1;
}

0 comments on commit 0ffaa4a

Please sign in to comment.