Versions Compared

Key

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

...

Code Block
float f(float x) {
   return x * 0.1f;
}

float g(float x) {
   return x * 0.1;
}

Function f is allowed to return a value wider than float, but function g (which uses the wider constant) is not.

...