commit 159dbb469fbefb328a0adf5cb1de1fb2d199115c parent 3af873e41fe432ee493bed68409654796310c9cf Author: Drew DeVault <sir@cmpwn.com> Date: Fri, 12 Feb 2021 18:15:19 -0500 types: add RUNE_MIN and RUNE_MAX Diffstat:
M | types/limits.ha | | | 6 | ++++++ |
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/types/limits.ha b/types/limits.ha @@ -46,3 +46,9 @@ export def U64_MIN: u64 = 0; // Maximum value which can be stored in a u64 type. export def U64_MAX: u64 = 18446744073709551615; + +// Maximum value which can be stored in a rune. +export def RUNE_MIN: rune = U32_MIN: rune; + +// Maximum value which can be stored in a rune. +export def RUNE_MAX: rune = U32_MAX: rune;