diff --git a/lib/std/meta.zig b/lib/std/meta.zig index 7fe0df3deaf0908eff62b90e63ae70caee35a054..46d31a87c3ba3cfc5679cb778127044cadd4cd3b 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