mirror of
https://github.com/ziglang/zig.git
synced 2026-02-20 00:08:56 +00:00
Value: Add @intCast in writeToPackedMemory for 32-bit targets
This commit is contained in:
parent
3295fee911
commit
9d0a4b60e1
@ -1357,9 +1357,9 @@ pub const Value = extern union {
|
||||
else => unreachable,
|
||||
},
|
||||
.Vector => {
|
||||
const len = ty.arrayLen();
|
||||
const elem_ty = ty.childType();
|
||||
const elem_bit_size = @intCast(u16, elem_ty.bitSize(target));
|
||||
const len = @intCast(usize, ty.arrayLen());
|
||||
|
||||
var bits: u16 = 0;
|
||||
var elem_i: usize = 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user