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 {
13571357 else => unreachable,
13581358 },
13591359 .Vector => {
1360 const len = ty.arrayLen();
13611360 const elem_ty = ty.childType();
13621361 const elem_bit_size = @intCast(u16, elem_ty.bitSize(target));
1362 const len = @intCast(usize, ty.arrayLen());
13631363
13641364 var bits: u16 = 0;
13651365 var elem_i: usize = 0;