diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-10-01 13:40:29 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-10-01 13:40:29 -0400 |
| commit | 597699243a6f935231ad83e63d22bf6ff9e4e547 (patch) | |
| tree | edd50fcdad4324680d9e2df7beeaaf93fb162938 /src/stdlib/datatypes.h | |
| parent | 1b307918c9f0ee6cf3dd074e0b9d9db1ffd35fb8 (diff) | |
For structs and fixed-size ints, use `.has_value` instead of `.is_none`
Diffstat (limited to 'src/stdlib/datatypes.h')
| -rw-r--r-- | src/stdlib/datatypes.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stdlib/datatypes.h b/src/stdlib/datatypes.h index cbf09519..fc665401 100644 --- a/src/stdlib/datatypes.h +++ b/src/stdlib/datatypes.h @@ -117,7 +117,7 @@ typedef struct { typedef struct { Byte_t value; - bool is_none : 1; + bool has_value : 1; } OptionalByte_t; -#define NONE_BYTE ((OptionalByte_t){.is_none = true}) +#define NONE_BYTE ((OptionalByte_t){.has_value = false}) |
