« Previous | Next » 

Revision a61c970f

IDa61c970f1e27a55ede0bafbe3145dafa9c901af1
Parent d7b28532
Child 651c5f56

Added by Gé Vissers almost 9 years ago

Fix use of abs() function with float argument.

The abs() function in stdlib.h takes an integer argument. Passing it a float
will silently convert the argument to int, and take the absolute value of the
result. Hence, abs(0.99) == 0, which is not what was intended. Use fabs instead.

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences