Skip to content

Commit

Permalink
fix cast
Browse files Browse the repository at this point in the history
  • Loading branch information
lemire committed Feb 4, 2024
1 parent 4d26cbc commit 51a1e19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/adler32.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Adler32 {
sum1 += Base;
}

sum2 = ((int)(sum2 - len * outchar + sum1 - 1) % (int)Base);
sum2 = (int(sum2 - len * outchar + sum1 - 1) % int(Base));
if (sum2 < 0) {
sum2 += Base;
}
Expand Down

0 comments on commit 51a1e19

Please sign in to comment.