diff --git a/classlib/src/main/java/org/teavm/classlib/java/lang/TMath.java b/classlib/src/main/java/org/teavm/classlib/java/lang/TMath.java index 13512312f..2d298daa9 100644 --- a/classlib/src/main/java/org/teavm/classlib/java/lang/TMath.java +++ b/classlib/src/main/java/org/teavm/classlib/java/lang/TMath.java @@ -219,7 +219,7 @@ public final class TMath extends TObject { } public static double hypot(double x, double y) { - return x * x + y * y; + return sqrt(x * x + y * y); } public static double expm1(double x) {