Skip to content

Commit

Permalink
Merge pull request #4784 from bd0n4lds/Dont-Use-Float-Type-For-Loop-I…
Browse files Browse the repository at this point in the history
…ndices

Change loop index from float to int
  • Loading branch information
Stypox authored Nov 9, 2020
2 parents f4435f9 + 9eb0f48 commit 60dc9d2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ public void draw(@NonNull Canvas canvas) {
// render marquee
width += size * 2;
Path marquee = new Path();
for (float i = -size; i < width; i += size) {
marquee.addPath(mMarqueeLine, i + mMarqueeProgress, 0);
for (int i = -size; i < width; i += size) {
marquee.addPath(mMarqueeLine, ((float)i + mMarqueeProgress), 0);
}
marquee.close();

Expand Down

0 comments on commit 60dc9d2

Please sign in to comment.