From 74b1265d2abdc0fe212e0882ac1759068993ee04 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 29 Jan 2025 14:27:10 -0500 Subject: Text struct field reordering --- stdlib/datatypes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stdlib/datatypes.h') diff --git a/stdlib/datatypes.h b/stdlib/datatypes.h index 80591adc..0254060b 100644 --- a/stdlib/datatypes.h +++ b/stdlib/datatypes.h @@ -70,8 +70,8 @@ enum text_type { TEXT_ASCII, TEXT_GRAPHEMES, TEXT_CONCAT }; typedef struct Text_s { int64_t length:54; // Number of grapheme clusters - uint8_t depth:8; uint8_t tag:2; + uint8_t depth:8; union { struct { const char *ascii; -- cgit v1.2.3