Martin Gansser wrote on 03/21/2017 07:17 PM:
Well, abs is abs(int). Here sr is unsigned int, so
at the line abs(real - sr), "real - sr" has type "unsigned int",
so this is ambiguous.
Maybe abs(real - (int)sr) is intended?
Regards,
Mamoru
took your suggestion, thanks.