diff options
author | Silvan Mosberger <contact@infinisil.com> | 2021-05-08 05:46:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-08 05:46:10 +0200 |
commit | fb1969806ff7c9a1b0b48e43b8561e6e7cf31fa1 (patch) | |
tree | bca4511b768e21831b40824591056d2e1a43c383 /lib | |
parent | bf9b6b1ef3dffa6f08ed16003630e1ce94361c1e (diff) | |
parent | 1c0d31d0422612f860690791740a1ca542c522a4 (diff) | |
download | nixpkgs-fb1969806ff7c9a1b0b48e43b8561e6e7cf31fa1.tar nixpkgs-fb1969806ff7c9a1b0b48e43b8561e6e7cf31fa1.tar.gz nixpkgs-fb1969806ff7c9a1b0b48e43b8561e6e7cf31fa1.tar.bz2 nixpkgs-fb1969806ff7c9a1b0b48e43b8561e6e7cf31fa1.tar.lz nixpkgs-fb1969806ff7c9a1b0b48e43b8561e6e7cf31fa1.tar.xz nixpkgs-fb1969806ff7c9a1b0b48e43b8561e6e7cf31fa1.tar.zst nixpkgs-fb1969806ff7c9a1b0b48e43b8561e6e7cf31fa1.zip |
Merge pull request #117888 from kvtb/patch-3
types.nix: fix outdated comment
Diffstat (limited to 'lib')
-rw-r--r-- | lib/types.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/types.nix b/lib/types.nix index d709791d6d0..f47a1f92de7 100644 --- a/lib/types.nix +++ b/lib/types.nix @@ -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 |