| author | |
| committer | |
| log | f0fdaf32d3b802e9db16a0753d9ff49a8667089b |
| tree | 5ff1ea4e3897869e3e01e8231acb393b83a7e591 |
| parent | 67afd2a470153681d3a2323ec388e3ecd545cef1 |
4 files changed, 4 insertions(+), 4 deletions(-)
lib/std/os/linux/x86.zig+1-1| ... | ... | @@ -108,7 +108,7 @@ pub fn syscall6( |
| 108 | 108 | ); |
| 109 | 109 | } |
| 110 | 110 | |
| 111 | pub fn socketcall(call: usize, args: [*]usize) usize { | |
| 111 | pub fn socketcall(call: usize, args: [*]const usize) usize { | |
| 112 | 112 | return asm volatile ("int $0x80" |
| 113 | 113 | : [ret] "={eax}" (-> usize), |
| 114 | 114 | : [number] "{eax}" (@enumToInt(SYS.socketcall)), |
src/Module.zig+1-1| ... | ... | @@ -6098,7 +6098,7 @@ pub const PeerTypeCandidateSrc = union(enum) { |
| 6098 | 6098 | none: void, |
| 6099 | 6099 | /// When we want to know the the src of candidate i, look up at |
| 6100 | 6100 | /// index i in this slice |
| 6101 | override: []?LazySrcLoc, | |
| 6101 | override: []const ?LazySrcLoc, | |
| 6102 | 6102 | /// resolvePeerTypes originates from a @TypeOf(...) call |
| 6103 | 6103 | typeof_builtin_call_node_offset: i32, |
| 6104 | 6104 |
src/link/MachO/Atom.zig+1-1| ... | ... | @@ -116,7 +116,7 @@ pub fn addRelocation(macho_file: *MachO, atom_index: Index, reloc: Relocation) ! |
| 116 | 116 | return addRelocations(macho_file, atom_index, &[_]Relocation{reloc}); |
| 117 | 117 | } |
| 118 | 118 | |
| 119 | pub fn addRelocations(macho_file: *MachO, atom_index: Index, relocs: []Relocation) !void { | |
| 119 | pub fn addRelocations(macho_file: *MachO, atom_index: Index, relocs: []const Relocation) !void { | |
| 120 | 120 | const gpa = macho_file.base.allocator; |
| 121 | 121 | const gop = try macho_file.relocs.getOrPut(gpa, atom_index); |
| 122 | 122 | if (!gop.found_existing) { |
test/behavior/array.zig+1-1| ... | ... | @@ -667,7 +667,7 @@ test "array init of container level array variable" { |
| 667 | 667 | test "runtime initialized sentinel-terminated array literal" { |
| 668 | 668 | var c: u16 = 300; |
| 669 | 669 | const f = &[_:0x9999]u16{c}; |
| 670 | const g = @ptrCast(*[4]u8, f); | |
| 670 | const g = @ptrCast(*const [4]u8, f); | |
| 671 | 671 | try std.testing.expect(g[2] == 0x99); |
| 672 | 672 | try std.testing.expect(g[3] == 0x99); |
| 673 | 673 | } |