Fix vector float -> bool conversion.

This commit is contained in:
Christoffer Lerno
2025-01-04 23:16:34 +01:00
parent 4c3944f626
commit 9957ab259c
6 changed files with 10 additions and 8 deletions

View File

@@ -37,6 +37,8 @@ fn void! test_conv() @test
fn void! testf() @test
{
float[<4>] x = { 4, 0, -1, 33 };
assert({ true, false, true, true} == (bool[<4>])x);
float[<4>] y = { 1, 2, 3, 4 };
float[<4>] z = { 2, 2, 2, -100 };
float[<4>] w = y + z;