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

checks: Clang-Format, part 2 #2710

Merged
merged 3 commits into from
Dec 22, 2022
Merged

checks: Clang-Format, part 2 #2710

merged 3 commits into from
Dec 22, 2022

Conversation

nilason
Copy link
Contributor

@nilason nilason commented Dec 20, 2022

Formatting following directories:

  • display
  • general
  • ps

(min_y -
in[i].value)));
new_y[i] =
(yoffset - yscale * (-1 * (min_y - in[i].value)));

Check failure

Code scanning / CodeQL

Multiplication result converted to larger type

Multiplication result may overflow 'float' before it is converted to 'double'.
new_y[i] = (yoffset - yscale * (in[i].value +
(min_y * -1)));
new_y[i] =
(yoffset - yscale * (in[i].value + (min_y * -1)));

Check failure

Code scanning / CodeQL

Multiplication result converted to larger type

Multiplication result may overflow 'float' before it is converted to 'double'.
@nilason nilason merged commit 8de925f into OSGeo:main Dec 22, 2022
@nilason nilason added add to git-blame-ignore-revs Once merged, add to .git-blame-ignore-revs C Related code is in C labels Dec 22, 2022
@nilason nilason added this to the 8.3.0 milestone Dec 22, 2022
@nilason nilason deleted the format_2 branch December 22, 2022 12:16
@nilason nilason removed the add to git-blame-ignore-revs Once merged, add to .git-blame-ignore-revs label Jan 2, 2023
ninsbl pushed a commit to ninsbl/grass that referenced this pull request Feb 17, 2023
@neteler neteler changed the title Clang-Format, part 2 checks: Clang-Format, part 2 Jun 6, 2023
neteler pushed a commit to nilason/grass that referenced this pull request Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C Related code is in C
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant