aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMaciej Walczak <14938807+xackus@users.noreply.github.com>2021-03-05 15:32:18 +0100
committerxackus <14938807+xackus@users.noreply.github.com>2021-03-05 21:04:27 +0100
commit5f53b77c2bed56e53717315eef2c92bfbf0a3ee0 (patch)
tree2240ed8f86f8129e2b5625718cbd3431aac2ab1c /lib
parent679910ecec5cb8d77cbb599ce5df9459615e2d50 (diff)
downloadzig-5f53b77c2bed56e53717315eef2c92bfbf0a3ee0.tar.gz
zig-5f53b77c2bed56e53717315eef2c92bfbf0a3ee0.zip
remove redundant cast
Co-authored-by: Veikka Tuominen <git@vexu.eu>
Diffstat (limited to 'lib')
-rw-r--r--lib/std/meta.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/meta.zig b/lib/std/meta.zig
index 7fe0df3dea..46d31a87c3 100644
--- a/lib/std/meta.zig
+++ b/lib/std/meta.zig
@@ -1121,7 +1121,7 @@ fn PromoteIntLiteralReturnType(comptime SuffixType: type, comptime target: compt
/// Promote the type of an integer literal until it fits as C would.
/// This is for translate-c and is not intended for general use.
pub fn promoteIntLiteral(comptime SuffixType: type, comptime target: comptime_int, comptime radix: CIntLiteralRadix) PromoteIntLiteralReturnType(SuffixType, target, radix) {
- return @as(PromoteIntLiteralReturnType(SuffixType, target, radix), target);
+ return target;
}
/// For a given function type, returns a tuple type which fields will