From 586d191585473b1d878140036da40e0d8b1c1068 Mon Sep 17 00:00:00 2001 From: Christoffer Lerno Date: Sun, 30 Mar 2025 23:11:29 +0200 Subject: [PATCH] Fix in stdlib and update readme. --- README.md | 5 +++-- lib/std/math/math_vector.c3 | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a5b29f81a..905da2cbf 100644 --- a/README.md +++ b/README.md @@ -138,9 +138,10 @@ fn void main() ### Current status -The current stable version of the compiler is **version 0.6.8**. +The current stable version of the compiler is **version 0.7.0**. -The the next version is 0.7.0 which will be a breaking release. +The upcoming 0.7.x releases will focus on expanding the standard library, +fixing bugs and improving compile time analysis. Follow the issues [here](https://github.com/c3lang/c3c/issues). If you have suggestions on how to improve the language, either [file an issue](https://github.com/c3lang/c3c/issues) diff --git a/lib/std/math/math_vector.c3 b/lib/std/math/math_vector.c3 index 3e96be962..70a2c13ac 100644 --- a/lib/std/math/math_vector.c3 +++ b/lib/std/math/math_vector.c3 @@ -80,7 +80,7 @@ macro rotate(v, angle) @private { var c = math::cos(angle); var s = math::sin(angle); - return $typeof(v) { v[0] * c - v[1] * s, v[0] * s + v[1] * c }; + return ($typeof(v)) { v[0] * c - v[1] * s, v[0] * s + v[1] * c }; } macro perpendicular3(v) @private @@ -111,7 +111,7 @@ macro cross3(v1, v2) @private macro transform2(v, mat) @private { - return $typeof(v) { + return ($typeof(v)) { mat.m00 * v[0] + mat.m10 * v[1] + mat.m30 , mat.m01 * v[0] + mat.m11 * v[1] + mat.m31 }; }