Update WMath.cpp

See #2466
https://github.com/arduino/Arduino/issues/2466