aboutsummaryrefslogtreecommitdiff
path: root/types.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-02 20:22:13 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-02 20:22:13 -0400
commit620ebeab8d6040c20c3278acebeafd02a67057a5 (patch)
tree63d9cd54d41d74b2b3f5b870967d3ad2933e5e08 /types.c
parent337aa911a9027602d47cd56ddbfcde0230a48943 (diff)
Fixing string methods
Diffstat (limited to 'types.c')
-rw-r--r--types.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/types.c b/types.c
index 60168a86..b297cec6 100644
--- a/types.c
+++ b/types.c
@@ -598,6 +598,7 @@ type_t *get_field_type(type_t *t, const char *field_name)
case TextType: {
if (Match(t, TextType)->lang && streq(field_name, "text_content"))
return Type(TextType);
+ else if (streq(field_name, "length")) return INT_TYPE;
return NULL;
}
case StructType: {