aboutsummaryrefslogtreecommitdiff
path: root/types.c
diff options
context:
space:
mode:
Diffstat (limited to 'types.c')
-rw-r--r--types.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/types.c b/types.c
index cee1db9b..3b0fd9b0 100644
--- a/types.c
+++ b/types.c
@@ -639,7 +639,7 @@ type_t *get_field_type(type_t *t, const char *field_name)
case PointerType:
return get_field_type(Match(t, PointerType)->pointed, field_name);
case TextType: {
- if (Match(t, TextType)->lang && streq(field_name, "text_content"))
+ if (Match(t, TextType)->lang && streq(field_name, "text"))
return Type(TextType);
else if (streq(field_name, "length")) return INT_TYPE;
return NULL;