aboutsummaryrefslogtreecommitdiff
path: root/lib/std/elf.zig
diff options
context:
space:
mode:
authorVeikka Tuominen <git@vexu.eu>2022-08-21 17:24:04 +0300
committerVeikka Tuominen <git@vexu.eu>2022-08-22 11:19:20 +0300
commit62ff8871ed9c8c4e46d8acd1d227ed3fb802be7f (patch)
treeb5bdd3f092ebc0b7e9c260df798b7019f69cdae7 /lib/std/elf.zig
parent6c020cdb767192757b6c4b43e2f14c5394760431 (diff)
downloadzig-62ff8871ed9c8c4e46d8acd1d227ed3fb802be7f.tar.gz
zig-62ff8871ed9c8c4e46d8acd1d227ed3fb802be7f.zip
stage2+stage1: remove type parameter from bit builtins
Closes #12529 Closes #12511 Closes #6835
Diffstat (limited to 'lib/std/elf.zig')
-rw-r--r--lib/std/elf.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/std/elf.zig b/lib/std/elf.zig
index d80ae2f6a0..16581b7782 100644
--- a/lib/std/elf.zig
+++ b/lib/std/elf.zig
@@ -387,7 +387,7 @@ pub const Header = struct {
const machine = if (need_bswap) blk: {
const value = @enumToInt(hdr32.e_machine);
- break :blk @intToEnum(EM, @byteSwap(@TypeOf(value), value));
+ break :blk @intToEnum(EM, @byteSwap(value));
} else hdr32.e_machine;
return @as(Header, .{
@@ -511,7 +511,7 @@ pub fn SectionHeaderIterator(ParseSource: anytype) type {
pub fn int(is_64: bool, need_bswap: bool, int_32: anytype, int_64: anytype) @TypeOf(int_64) {
if (is_64) {
if (need_bswap) {
- return @byteSwap(@TypeOf(int_64), int_64);
+ return @byteSwap(int_64);
} else {
return int_64;
}
@@ -522,7 +522,7 @@ pub fn int(is_64: bool, need_bswap: bool, int_32: anytype, int_64: anytype) @Typ
pub fn int32(need_bswap: bool, int_32: anytype, comptime Int64: anytype) Int64 {
if (need_bswap) {
- return @byteSwap(@TypeOf(int_32), int_32);
+ return @byteSwap(int_32);
} else {
return int_32;
}