aboutsummaryrefslogtreecommitdiff
path: root/types.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-02 19:07:51 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-02 19:07:51 -0400
commit00a31178030c4a0371673b2e6c7dc33c1a89e45c (patch)
treeb7e94ee0e0bff48f57a970f5bcaac4336b740762 /types.c
parent94761d9a5a2460b5a43489526e1f404611ddb750 (diff)
Bugfix
Diffstat (limited to 'types.c')
-rw-r--r--types.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/types.c b/types.c
index cc35d792..16a77528 100644
--- a/types.c
+++ b/types.c
@@ -482,7 +482,7 @@ size_t type_size(type_t *t)
}
}
case NumType: return Match(t, NumType)->bits == TYPE_NBITS64 ? sizeof(double) : sizeof(float);
- case TextType: return sizeof(CORD);
+ case TextType: return sizeof(Text_t);
case ArrayType: return sizeof(array_t);
case SetType: return sizeof(table_t);
case ChannelType: return sizeof(channel_t*);
@@ -545,7 +545,7 @@ size_t type_align(type_t *t)
}
}
case NumType: return Match(t, NumType)->bits == TYPE_NBITS64 ? __alignof__(double) : __alignof__(float);
- case TextType: return __alignof__(CORD);
+ case TextType: return __alignof__(Text_t);
case SetType: return __alignof__(table_t);
case ArrayType: return __alignof__(array_t);
case ChannelType: return __alignof__(channel_t*);