aboutsummaryrefslogtreecommitdiff
path: root/types.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-03-18 17:00:30 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-03-18 17:00:30 -0400
commit6086b2dbda874d5538e878101c7ee98a10fdeddb (patch)
tree9e96e8e279a433cc5484358f10b15f87634463f9 /types.c
parentbc054ab6c6b6974c315cce21abb3405e443acd3e (diff)
Expose PathType as a proper enum
Diffstat (limited to 'types.c')
-rw-r--r--types.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/types.c b/types.c
index fde76440..506850e8 100644
--- a/types.c
+++ b/types.c
@@ -497,6 +497,7 @@ PUREFUNC size_t type_size(type_t *t)
{
if (t == THREAD_TYPE) return sizeof(pthread_t*);
if (t == PATH_TYPE) return sizeof(Path_t);
+ if (t == PATH_TYPE_TYPE) return sizeof(PathType_t);
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wswitch-default"
switch (t->tag) {
@@ -585,6 +586,7 @@ PUREFUNC size_t type_align(type_t *t)
{
if (t == THREAD_TYPE) return __alignof__(pthread_t*);
if (t == PATH_TYPE) return __alignof__(Path_t);
+ if (t == PATH_TYPE_TYPE) return __alignof__(PathType_t);
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wswitch-default"
switch (t->tag) {