From 597699243a6f935231ad83e63d22bf6ff9e4e547 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 1 Oct 2025 13:40:29 -0400 Subject: For structs and fixed-size ints, use `.has_value` instead of `.is_none` --- src/stdlib/datatypes.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/stdlib/datatypes.h') 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}) -- cgit v1.2.3