| ... | @@ -1121,7 +1121,7 @@ fn PromoteIntLiteralReturnType(comptime SuffixType: type, comptime target: compt | ... | @@ -1121,7 +1121,7 @@ fn PromoteIntLiteralReturnType(comptime SuffixType: type, comptime target: compt |
| 1121 | /// Promote the type of an integer literal until it fits as C would. | 1121 | /// Promote the type of an integer literal until it fits as C would. |
| 1122 | /// This is for translate-c and is not intended for general use. | 1122 | /// This is for translate-c and is not intended for general use. |
| 1123 | pub fn promoteIntLiteral(comptime SuffixType: type, comptime target: comptime_int, comptime radix: CIntLiteralRadix) PromoteIntLiteralReturnType(SuffixType, target, radix) { | 1123 | pub 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; |
| 1125 | } | 1125 | } |
| 1126 | | 1126 | |
| 1127 | /// For a given function type, returns a tuple type which fields will | 1127 | /// For a given function type, returns a tuple type which fields will |