adding negate opcodes
Build / build (push) Successful in 1m50s
Test / build (push) Successful in 5m26s

This commit is contained in:
2026-02-24 04:47:38 +01:00
parent 35686c3012
commit 2409ec7269
4 changed files with 78 additions and 9 deletions
+1 -1
View File
@@ -170,7 +170,7 @@ pub fn writeDescriptorSet(self: *const Self, allocator: std.mem.Allocator, input
switch (value.*) {
.RuntimeArray => |a| if (a == null) {
const elem_size = resolved.variant.?.Type.getSize(results);
value.* = try Result.initValue(allocator2, @divExact(len, elem_size), results, resolved);
value.* = try Result.initValue(allocator2, std.math.divCeil(usize, len, elem_size) catch unreachable, results, resolved);
},
.Structure => |*s| for (s.*, 0..) |*elem, i| {
try @This().init(allocator2, len, elem, resolved.variant.?.Type.Structure.members_type_word[i], results);