Merge pull request #117888 from kvtb/patch-3

types.nix: fix outdated comment
This commit is contained in:
Silvan Mosberger 2021-05-08 05:46:10 +02:00 committed by GitHub
commit fb1969806f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -260,14 +260,14 @@ rec {
};
u8 = unsign 8 256;
u16 = unsign 16 65536;
# the biggest int a 64-bit Nix accepts is 2^63 - 1 (9223372036854775808), for a 32-bit Nix it is 2^31 - 1 (2147483647)
# the smallest int a 64-bit Nix accepts is -2^63 (-9223372036854775807), for a 32-bit Nix it is -2^31 (-2147483648)
# u32 = unsign 32 4294967296;
# the biggest int Nix accepts is 2^63 - 1 (9223372036854775808)
# the smallest int Nix accepts is -2^63 (-9223372036854775807)
u32 = unsign 32 4294967296;
# u64 = unsign 64 18446744073709551616;
s8 = sign 8 256;
s16 = sign 16 65536;
# s32 = sign 32 4294967296;
s32 = sign 32 4294967296;
};
# Alias of u16 for a port number