mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +00:00
remove redundant cast
Co-authored-by: Veikka Tuominen <git@vexu.eu>
This commit is contained in:
parent
679910ecec
commit
5f53b77c2b
@ -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.
|
/// 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.
|
/// 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) {
|
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
|
/// For a given function type, returns a tuple type which fields will
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user