Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Edited by sciSpider (sch jbop) (X_X)@==(Q_Q)@

...

In this compliant solution, pi is declared as a const-qualified object.

Code Block
bgColor#ccccff
float const float pi = 3.14159f;
float degrees;
float radians;
/* ... */
radians = degrees * pi / 180;

...

Recommendation

Severity

Likelihood

Remediation Cost

Priority

Level

DCL00-A

1 ( low ) 1 (

unlikely )

1 ( high )

P1

L3

Related Vulnerabilities

...