authorgravatar for 14938807+xackus@users.noreply.github.comMaciej Walczak <14938807+xackus@users.noreply.github.com> 2021-03-05 15:32:18+01:00
committergravatar for 14938807+xackus@users.noreply.github.comxackus <14938807+xackus@users.noreply.github.com> 2021-03-05 21:04:27+01:00
log5f53b77c2bed56e53717315eef2c92bfbf0a3ee0
tree2240ed8f86f8129e2b5625718cbd3431aac2ab1c
parent679910ecec5cb8d77cbb599ce5df9459615e2d50

remove redundant cast

Co-authored-by: Veikka Tuominen <git@vexu.eu>

1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/meta.zig+1-1
......@@ -1121,7 +1121,7 @@ fn PromoteIntLiteralReturnType(comptime SuffixType: type, comptime target: compt
11211121/// Promote the type of an integer literal until it fits as C would.
11221122/// This is for translate-c and is not intended for general use.
11231123pub fn promoteIntLiteral(comptime SuffixType: type, comptime target: comptime_int, comptime radix: CIntLiteralRadix) PromoteIntLiteralReturnType(SuffixType, target, radix) {
1124 return @as(PromoteIntLiteralReturnType(SuffixType, target, radix), target);
1124 return target;
11251125}
11261126
11271127/// For a given function type, returns a tuple type which fields will