diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2021-08-03 17:07:25 +0200 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2021-08-11 20:59:52 +0200 |
| commit | 97d80d03f9902872bcd12e460822dce70e6d3fd1 (patch) | |
| tree | b0c9a0e85d238df5dc4ee8b5a390a15719c17fb1 /core/math/big/common.odin | |
| parent | 627872db979585d70c0e19811345e440e253ce88 (diff) | |
big: `Error.None` -> `nil`
Diffstat (limited to 'core/math/big/common.odin')
| -rw-r--r-- | core/math/big/common.odin | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/core/math/big/common.odin b/core/math/big/common.odin index 5a51c7405..cad6524e5 100644 --- a/core/math/big/common.odin +++ b/core/math/big/common.odin @@ -64,11 +64,18 @@ Int :: struct { sign: Sign, }; +Flag :: enum u8 { + NaN, + Inf, + Immutable, +}; + +Flags :: bit_set[Flag; u8]; + /* Errors are a strict superset of runtime.Allocation_Error. */ Error :: enum int { - None = 0, Out_Of_Memory = 1, Invalid_Pointer = 2, Invalid_Argument = 3, @@ -85,7 +92,6 @@ Error :: enum int { }; Error_String :: #partial [Error]string{ - .None = "None", .Out_Of_Memory = "Out of memory", .Invalid_Pointer = "Invalid pointer", .Invalid_Argument = "Invalid argument", |