authorgravatar for topolarity@tapscott.meCody Tapscott <topolarity@tapscott.me> 2022-10-19 12:02:21-07:00
committergravatar for topolarity@tapscott.meCody Tapscott <topolarity@tapscott.me> 2022-10-28 08:41:04-07:00
log9d0a4b60e1c715238f96a64c45619a680f94c300
treef94aca966c076d460766233cabfd1b590b94e4b3
parent3295fee9116789f144e6406493116c451aee7c57

Value: Add `@intCast` in `writeToPackedMemory` for 32-bit targets


1 files changed, 1 insertions(+), 1 deletions(-)

src/value.zig+1-1
...@@ -1357,9 +1357,9 @@ pub const Value = extern union {...@@ -1357,9 +1357,9 @@ pub const Value = extern union {
1357 else => unreachable,1357 else => unreachable,
1358 },1358 },
1359 .Vector => {1359 .Vector => {
1360 const len = ty.arrayLen();
1361 const elem_ty = ty.childType();1360 const elem_ty = ty.childType();
1362 const elem_bit_size = @intCast(u16, elem_ty.bitSize(target));1361 const elem_bit_size = @intCast(u16, elem_ty.bitSize(target));
1362 const len = @intCast(usize, ty.arrayLen());
13631363
1364 var bits: u16 = 0;1364 var bits: u16 = 0;
1365 var elem_i: usize = 0;1365 var elem_i: usize = 0;