diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-02 20:22:13 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-02 20:22:13 -0400 |
| commit | 620ebeab8d6040c20c3278acebeafd02a67057a5 (patch) | |
| tree | 63d9cd54d41d74b2b3f5b870967d3ad2933e5e08 /types.c | |
| parent | 337aa911a9027602d47cd56ddbfcde0230a48943 (diff) | |
Fixing string methods
Diffstat (limited to 'types.c')
| -rw-r--r-- | types.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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: { |
