From 6b136b7fc6f371ad2a600cca7b4f52e7bcaf5bb0 Mon Sep 17 00:00:00 2001 From: Nik Date: Sun, 22 Oct 2023 21:23:51 +0200 Subject: [PATCH] includes/std: Fixed `std::math::atan2` not taking correct arguments --- includes/std/math.pat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/std/math.pat b/includes/std/math.pat index f50e196..b4bf9f3 100644 --- a/includes/std/math.pat +++ b/includes/std/math.pat @@ -265,7 +265,7 @@ namespace std::math { @param value Value @return Arc tangent of `value` in radians between `-pi` and `pi` */ - fn atan2(auto value) { return builtin::std::math::atan2(value); }; + fn atan2(auto y, auto x) { return builtin::std::math::atan2(y, x); }; /** Calculates the hyperbolic sine of `value`.