Skip to content

Commit d4cd546

Browse files
committed
Fixed sonar
1 parent 3e971f1 commit d4cd546

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/g3301_3400/s3343_count_number_of_balanced_permutations

1 file changed

+1
-1
lines changed

src/main/java/g3301_3400/s3343_count_number_of_balanced_permutations/Solution.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public int countBalancedPermutations(String n) {
5757

5858
private long modInverse(long a, int m) {
5959
long r = 1;
60-
long p = m - 2;
60+
long p = m - 2L;
6161
long b = a;
6262
while (p > 0) {
6363
if ((p & 1) == 1) {

0 commit comments

Comments
 (0)