aboutsummaryrefslogtreecommitdiff
path: root/types.c
diff options
context:
space:
mode:
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: {