Skip to content

Commit

Permalink
fix: Fixed a bug where division by zero occurred
Browse files Browse the repository at this point in the history
  • Loading branch information
cheatsnake committed Jul 31, 2022
1 parent bec40ea commit e5a3143
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/math/assists.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ func findDivisors(divisible int) []int {
divisors := []int{}

if divisible < 0 {
for i := divisible; i <= 0; i++ {
for i := divisible; i < 0; i++ {
if divisible%i == 0 {
divisors = append(divisors, i, -i)
}
Expand Down

0 comments on commit e5a3143

Please sign in to comment.