Skip to content

Commit 5e8e686

Browse files
committed
explicit cast to int
1 parent 82ffd1e commit 5e8e686

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sorts/comb_sort.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def comb_sort(data: list) -> list:
3737
while not completed:
3838

3939
# Update the gap value for a next comb
40-
gap //= shrink_factor
40+
gap = int(gap / shrink_factor)
4141
if gap <= 1:
4242
completed = True
4343

0 commit comments

Comments
 (0)