Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change loop index from float to int #4784

Merged
merged 1 commit into from
Nov 9, 2020
Merged

Change loop index from float to int #4784

merged 1 commit into from
Nov 9, 2020

Conversation

bd0n4lds
Copy link

@bd0n4lds bd0n4lds commented Nov 3, 2020

What is it?

  • Bugfix (user facing)
  • Feature (user facing)
  • Codebase improvement (dev facing)
  • Meta improvement to the project (dev facing)

Description of the changes in your PR

Codacy found issues "Don't use floating point for loop indices. If you must use floating-point, use double."

Fixes the following issue(s)

Relies on the following changes

APK testing

debug.zip

Due diligence

@Redirion
Copy link
Member

Redirion commented Nov 3, 2020

I don't think that is how it should be handled. This just looks wrong.

@bd0n4lds
Copy link
Author

bd0n4lds commented Nov 4, 2020

Redid the casting on the for loop indices and changed back the variable mMarqueeProgress to float.

@TobiGr
Copy link
Member

TobiGr commented Nov 8, 2020

why is i still a double? Can't we use int?

@bd0n4lds
Copy link
Author

bd0n4lds commented Nov 8, 2020

why is i still a double? Can't we use int?

Made the change

@Redirion
Copy link
Member

Redirion commented Nov 9, 2020

looks okay now. Please squash your commits.

Copy link
Member

@Stypox Stypox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bd0n4lds thank you for noticing this ;-)
@Redirion I squashed

@Stypox Stypox changed the title Fix Indices from Float to Double Change loop index from float to int Nov 9, 2020
@Stypox Stypox merged commit 60dc9d2 into TeamNewPipe:dev Nov 9, 2020
@bd0n4lds bd0n4lds deleted the Dont-Use-Float-Type-For-Loop-Indices branch November 9, 2020 13:39
This was referenced Nov 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants