fixing pointer syncing
All checks were successful
Build / build (push) Successful in 2m3s
Test / build (push) Successful in 9m35s

This commit is contained in:
2026-03-21 05:18:27 +01:00
parent c18deb432f
commit 569d7fda01
3 changed files with 80 additions and 52 deletions

View File

@@ -72,14 +72,18 @@ pub const Value = union(Type) {
errdefer allocator.destroy(value);
value.* = try Value.init(allocator, results, self.type_word);
_ = try value.writeConst(self.data[(try self.getOffsetOfIndex(index))..]);
_ = try value.writeConst(self.data[self.getOffsetOfIndex(index)..]);
return value;
}
pub inline fn getOffsetOfIndex(self: *const @This(), index: usize) RuntimeError!usize {
pub inline fn getOffsetOfIndex(self: *const @This(), index: usize) usize {
return self.stride * index;
}
pub inline fn getLen(self: *const @This()) usize {
return @divTrunc(self.data.len, self.stride);
}
},
Structure: []Self,
Function: noreturn,