aboutsummaryrefslogtreecommitdiff
path: root/types.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-11-25 14:57:58 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-11-25 14:57:58 -0500
commit3e23ea6a67e4bbfea4dc667beb6285a90dff2877 (patch)
tree15d537f0da478e5281d164af9a4696fa37d5e5f1 /types.c
parent369c83e8c517116de560643c2c9bdcedfb3850dc (diff)
Improve handling of update assignments
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 75a3797b..83effd0d 100644
--- a/types.c
+++ b/types.c
@@ -135,7 +135,7 @@ bool type_is_a(type_t *t, type_t *req)
return false;
}
-static type_t *non_optional(type_t *t)
+type_t *non_optional(type_t *t)
{
return t->tag == OptionalType ? Match(t, OptionalType)->type : t;
}