| author | |
| committer | |
| log | bfb15f1c9f1b4a33cfd8e58cdefc3a0d98a015d2 |
| tree | ee257da4316c3e53d9ddd34769cbffe7440b88ab |
| parent | 1baaf9a503bd399f4da4a9d3e80695b1739ea966 |
3 files changed, 4 insertions(+), 4 deletions(-)
lib/std/c/hermit.zig+2-2| ... | @@ -1,6 +1,6 @@ | ... | @@ -1,6 +1,6 @@ |
| 1 | pub const pthread_mutex_t = extern struct { | 1 | pub const pthread_mutex_t = extern struct { |
| 2 | inner: usize = ~usize(0), | 2 | inner: usize = ~@as(usize, 0), |
| 3 | }; | 3 | }; |
| 4 | pub const pthread_cond_t = extern struct { | 4 | pub const pthread_cond_t = extern struct { |
| 5 | inner: usize = ~usize(0), | 5 | inner: usize = ~@as(usize, 0), |
| 6 | }; | 6 | }; |
lib/std/meta.zig+1-1| ... | @@ -548,7 +548,7 @@ pub fn intToEnum(comptime Tag: type, tag_int: var) IntToEnumError!Tag { | ... | @@ -548,7 +548,7 @@ pub fn intToEnum(comptime Tag: type, tag_int: var) IntToEnumError!Tag { |
| 548 | pub fn fieldIndex(comptime T: type, comptime name: []const u8) ?comptime_int { | 548 | pub fn fieldIndex(comptime T: type, comptime name: []const u8) ?comptime_int { |
| 549 | inline for (fields(T)) |field, i| { | 549 | inline for (fields(T)) |field, i| { |
| 550 | if (mem.eql(u8, field.name, name)) | 550 | if (mem.eql(u8, field.name, name)) |
| 551 | return comptime_int(i); | 551 | return i; |
| 552 | } | 552 | } |
| 553 | return null; | 553 | return null; |
| 554 | } | 554 | } |
lib/std/os/bits/linux.zig+1-1| ... | @@ -951,7 +951,7 @@ pub fn cap_valid(u8: x) bool { | ... | @@ -951,7 +951,7 @@ pub fn cap_valid(u8: x) bool { |
| 951 | } | 951 | } |
| 952 | 952 | ||
| 953 | pub fn CAP_TO_MASK(cap: u8) u32 { | 953 | pub fn CAP_TO_MASK(cap: u8) u32 { |
| 954 | return @as(u32, 1) << u5(cap & 31); | 954 | return @as(u32, 1) << @intCast(u5, cap & 31); |
| 955 | } | 955 | } |
| 956 | 956 | ||
| 957 | pub fn CAP_TO_INDEX(cap: u8) u8 { | 957 | pub fn CAP_TO_INDEX(cap: u8) u8 { |