Page 1 of 1

Maths.h bug, missing parens

Posted: Wed Feb 17, 2016 9:47 am
by cero
The min, max, and abs macros need total parens outside the expression, otherwise they're buggy.

For example:
if (abs(a) >= 512)

This produces wrong results with the current macros.

Re: Maths.h bug, missing parens

Posted: Wed Feb 17, 2016 1:01 pm
by Stef
indeed, thanks for pointing that !