| author | |
| committer | |
| log | a430853a48a5e4dbcd0094c632957e28898159f3 |
| tree | d1bc116c6608645b376eb486ee8bf81bd09bfb38 |
| parent | 1aafbae5be518309b4c2194cdc24e22642514519 |
3 files changed, 3 insertions(+), 3 deletions(-)
src/ir.cpp+1-1| ... | @@ -10215,7 +10215,7 @@ static IrInstruction *ir_analyze_cast(IrAnalyze *ira, IrInstruction *source_inst | ... | @@ -10215,7 +10215,7 @@ static IrInstruction *ir_analyze_cast(IrAnalyze *ira, IrInstruction *source_inst |
| 10215 | } | 10215 | } |
| 10216 | } | 10216 | } |
| 10217 | 10217 | ||
| 10218 | // explicit cast from [N]T to &const []const N | 10218 | // explicit cast from [N]T to &const []const T |
| 10219 | if (wanted_type->id == TypeTableEntryIdPointer && | 10219 | if (wanted_type->id == TypeTableEntryIdPointer && |
| 10220 | wanted_type->data.pointer.is_const && | 10220 | wanted_type->data.pointer.is_const && |
| 10221 | is_slice(wanted_type->data.pointer.child_type) && | 10221 | is_slice(wanted_type->data.pointer.child_type) && |
std/cstr.zig+1-1| ... | @@ -79,7 +79,7 @@ pub const NullTerminated2DArray = struct { | ... | @@ -79,7 +79,7 @@ pub const NullTerminated2DArray = struct { |
| 79 | errdefer allocator.free(buf); | 79 | errdefer allocator.free(buf); |
| 80 | 80 | ||
| 81 | var write_index = index_size; | 81 | var write_index = index_size; |
| 82 | const index_buf = ([]?[*]u8)(buf); | 82 | const index_buf = @bytesToSlice(?[*]u8, buf); |
| 83 | 83 | ||
| 84 | var i: usize = 0; | 84 | var i: usize = 0; |
| 85 | for (slices) |slice| { | 85 | for (slices) |slice| { |
std/os/index.zig+1-1| ... | @@ -1805,7 +1805,7 @@ pub fn argsAlloc(allocator: *mem.Allocator) ![]const []u8 { | ... | @@ -1805,7 +1805,7 @@ pub fn argsAlloc(allocator: *mem.Allocator) ![]const []u8 { |
| 1805 | const buf = try allocator.alignedAlloc(u8, @alignOf([]u8), total_bytes); | 1805 | const buf = try allocator.alignedAlloc(u8, @alignOf([]u8), total_bytes); |
| 1806 | errdefer allocator.free(buf); | 1806 | errdefer allocator.free(buf); |
| 1807 | 1807 | ||
| 1808 | const result_slice_list = ([][]u8)(buf[0..slice_list_bytes]); | 1808 | const result_slice_list = @bytesToSlice([]u8, buf[0..slice_list_bytes]); |
| 1809 | const result_contents = buf[slice_list_bytes..]; | 1809 | const result_contents = buf[slice_list_bytes..]; |
| 1810 | mem.copy(u8, result_contents, contents_slice); | 1810 | mem.copy(u8, result_contents, contents_slice); |
| 1811 | 1811 |