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: typenumber: comptime_intbase: CIntLiteralBase Source
pub fn promoteIntLiteral(
comptime SuffixType: type,
comptime number: comptime_int,
comptime base: CIntLiteralBase,
) PromoteIntLiteralReturnType(SuffixType, number, base) {
return number;
}