Function promoteIntLiteral [src]
Promote the type of an integer literal until it fits as C would.
Prototype
pub fn promoteIntLiteral( comptime SuffixType: type, comptime number: comptime_int, comptime base: CIntLiteralBase, ) PromoteIntLiteralReturnType(SuffixType, number, base)
Parameters
SuffixType: type
number: comptime_int
base: CIntLiteralBase
Source
pub fn promoteIntLiteral(
comptime SuffixType: type,
comptime number: comptime_int,
comptime base: CIntLiteralBase,
) PromoteIntLiteralReturnType(SuffixType, number, base) {
return number;
}