types.nix: fix outdated comment

Nix's `int` is always 64-bit
This commit is contained in:
kvtb 2021-03-28 14:04:39 +00:00 committed by GitHub
parent 4aacd02d33
commit 3131cdf05b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -256,8 +256,8 @@ 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)
# 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;