From 62ff8871ed9c8c4e46d8acd1d227ed3fb802be7f Mon Sep 17 00:00:00 2001 From: Veikka Tuominen Date: Sun, 21 Aug 2022 17:24:04 +0300 Subject: stage2+stage1: remove type parameter from bit builtins Closes #12529 Closes #12511 Closes #6835 --- lib/std/elf.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/std/elf.zig') 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; } -- cgit v1.2.3