aboutsummaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-11 22:50:03 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-11 22:50:03 -0400
commit0f7cf28af1b204d0f979dd7b97133329f16ffe55 (patch)
treed1674b27d5e93e08a35c81988f35fbfec11f10e3 /compile.c
parent62408e4efcfac85d4c835242391aae761c2313eb (diff)
Fix threads and integersoptionals
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/compile.c b/compile.c
index 8d017a42..f5ed809d 100644
--- a/compile.c
+++ b/compile.c
@@ -324,6 +324,8 @@ static CORD optional_var_into_nonnull(binding_t *b)
case IntType:
return CORD_all(b->code, ".i");
case StructType:
+ if (t == THREAD_TYPE)
+ return b->code;
return CORD_all(b->code, ".value");
default:
return b->code;