Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
stakach committed Aug 5, 2019
1 parent de8b8a0 commit e34e816
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ lib
.shards
app
*.dwarf
src/.DS_Store
2 changes: 1 addition & 1 deletion shard.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: bisect
version: 1.1.1
version: 1.1.2

development_dependencies:
ameba:
Expand Down
4 changes: 2 additions & 2 deletions src/bisect.cr
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module Bisect
raise ArgumentError.new("lo must be non-negative") if lo < 0

while lo < hi
mid = (lo + hi) / 2
mid = (lo + hi) // 2
if x < a[mid]
hi = mid
else
Expand Down Expand Up @@ -70,7 +70,7 @@ module Bisect
raise ArgumentError.new("lo must be non-negative") if lo < 0

while lo < hi
mid = (lo + hi) / 2
mid = (lo + hi) // 2
if a[mid] < x
lo = mid + 1
else
Expand Down

0 comments on commit e34e816

Please sign in to comment.