| ... | ... | @@ -16,7 +16,7 @@ pub const DynLib = struct { |
| 16 | 16 | const fd = try std.os.posixOpen(allocator, path, 0, linux.O_RDONLY | linux.O_CLOEXEC); |
| 17 | 17 | errdefer std.os.close(fd); |
| 18 | 18 | |
| 19 | | const size = usize((try std.os.posixFStat(fd)).size); |
| 19 | const size = @intCast(usize, (try std.os.posixFStat(fd)).size); |
| 20 | 20 | |
| 21 | 21 | const addr = linux.mmap( |
| 22 | 22 | null, |
| ... | ... | @@ -126,8 +126,8 @@ pub const ElfLib = struct { |
| 126 | 126 | |
| 127 | 127 | var i: usize = 0; |
| 128 | 128 | while (i < self.hashtab[1]) : (i += 1) { |
| 129 | | if (0 == (u32(1) << u5(self.syms[i].st_info & 0xf) & OK_TYPES)) continue; |
| 130 | | if (0 == (u32(1) << u5(self.syms[i].st_info >> 4) & OK_BINDS)) continue; |
| 129 | if (0 == (u32(1) << @intCast(u5, self.syms[i].st_info & 0xf) & OK_TYPES)) continue; |
| 130 | if (0 == (u32(1) << @intCast(u5, self.syms[i].st_info >> 4) & OK_BINDS)) continue; |
| 131 | 131 | if (0 == self.syms[i].st_shndx) continue; |
| 132 | 132 | if (!mem.eql(u8, name, cstr.toSliceConst(self.strings + self.syms[i].st_name))) continue; |
| 133 | 133 | if (maybe_versym) |versym| { |