Fix in stdlib and update readme.

This commit is contained in:
Christoffer Lerno
2025-03-30 23:11:29 +02:00
parent 83e5a0c2ab
commit 586d191585
2 changed files with 5 additions and 4 deletions

View File

@@ -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)

View File

@@ -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 };
}