Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note that providing a well documented imod method is a better choice as it improves readability and makes it clear that its sole purpose is to return positive values when required and not to "fix" the unintuitive behavior of the remainder operator, as defined by the specification.

Risk Assessment

Assuming a positive remainder when using the remainder operator can result in incorrect computations.

Recommendation

Severity

Likelihood

Remediation Cost

Priority

Level

INT02-J

low

unlikely

high

P1

L3

...