diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-03-01 22:01:27 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-03-01 22:01:27 -0500 |
| commit | ba1abd46152beda84f0dcffbbf8f97f49cad30cc (patch) | |
| tree | a400ec7864def595f10f233c6bda864d163b7ea3 | |
| parent | 37e96dbda5ee7b599c3659008c94907fdc8425a2 (diff) | |
Bugfix for lang.text methods
| -rw-r--r-- | types.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -640,7 +640,7 @@ type_t *get_field_type(type_t *t, const char *field_name) return get_field_type(Match(t, PointerType)->pointed, field_name); case TextType: { if (Match(t, TextType)->lang && streq(field_name, "text")) - return Type(TextType); + return TEXT_TYPE; else if (streq(field_name, "length")) return INT_TYPE; return NULL; } |
