mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-14 00:56:22 +01:00
Sema: allow cast builtins on vectors
The following cast builtins did not previously work on vectors, and have been made to: * `@floatCast` * `@ptrFromInt` * `@intFromPtr` * `@floatFromInt` * `@intFromFloat` * `@intFromBool` Resolves: #16267
This commit is contained in:
parent
c6024691cf
commit
8d036d1d78
4 changed files with 417 additions and 77 deletions
|
|
@ -22,4 +22,4 @@ export fn qux() void {
|
|||
// :3:40: error: unable to cast runtime value to 'comptime_float'
|
||||
// :7:18: error: expected integer type, found 'f32'
|
||||
// :11:32: error: expected integer type, found 'f32'
|
||||
// :15:29: error: expected float type, found 'u32'
|
||||
// :15:29: error: expected float or vector type, found 'u32'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue