Fix #645 by calling Java Math.cbrt directly. #656

Merged
merged 1 commit into from Apr 25, 2013

Projects

None yet

3 participants

@tychobrailleur
Contributor

This fixed jruby#645 by calling java.lang.Math.cbrt directly. Math.cbrt was introduced in Java 5, so it is safe to use in the JRuby codebase. Also, cbrt now throws a TypeError if the argument cannot be coerced to Float.

Related rubyspec change: https://github.com/rubyspec/rubyspec/pull/206

@headius headius merged commit 62b9e1d into jruby:master Apr 25, 2013

1 check passed

default The Travis build passed
Details
@d1egoaz
d1egoaz commented Apr 25, 2013

Tks so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment