aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCody Tapscott <topolarity@tapscott.me>2022-10-19 12:02:21 -0700
committerCody Tapscott <topolarity@tapscott.me>2022-10-28 08:41:04 -0700
commit9d0a4b60e1c715238f96a64c45619a680f94c300 (patch)
treef94aca966c076d460766233cabfd1b590b94e4b3 /src
parent3295fee9116789f144e6406493116c451aee7c57 (diff)
downloadzig-9d0a4b60e1c715238f96a64c45619a680f94c300.tar.gz
zig-9d0a4b60e1c715238f96a64c45619a680f94c300.zip
Value: Add `@intCast` in `writeToPackedMemory` for 32-bit targets
Diffstat (limited to 'src')
-rw-r--r--src/value.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/value.zig b/src/value.zig
index 7468a69fda..2ecfaefa56 100644
--- a/src/value.zig
+++ b/src/value.zig
@@ -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;