Skip to content

Commit

Permalink
Merge pull request #445 from softeerbootcamp-2nd/bugfix/color-count-o…
Browse files Browse the repository at this point in the history
…verflow

[BUG FIX] #439: color int 크기 초과 버그 해결
  • Loading branch information
dydwo0740 authored Aug 24, 2023
2 parents 1422a3a + 7d0c784 commit 9246b9b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public int getPercent(Optional<Long> count, Long boughtCount) {
if (count.isEmpty()) {
return 0;
}
return boughtCount.intValue() * 100 / count.get().intValue();
return (int) (boughtCount * 100 / count.get());
}

public String changeUrl(String value, int index) {
Expand Down

0 comments on commit 9246b9b

Please sign in to comment.