aboutsummaryrefslogtreecommitdiff
path: root/src/Zcu/PerThread.zig
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2024-07-07 07:33:09 -0400
committerJacob Young <jacobly0@users.noreply.github.com>2024-07-07 22:59:52 -0400
commitbdae01ab047accbbc6dcd014d008f2554aa78696 (patch)
treee82d85afcf5ef099505da12335497e80e29d5969 /src/Zcu/PerThread.zig
parent49b25475ad0d224e13d989f9ff860b32fca6315a (diff)
downloadzig-bdae01ab047accbbc6dcd014d008f2554aa78696.tar.gz
zig-bdae01ab047accbbc6dcd014d008f2554aa78696.zip
InternPool: implement and use thread-safe list for extra and limbs
Diffstat (limited to 'src/Zcu/PerThread.zig')
-rw-r--r--src/Zcu/PerThread.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Zcu/PerThread.zig b/src/Zcu/PerThread.zig
index 0396d06b98..b0fc35b552 100644
--- a/src/Zcu/PerThread.zig
+++ b/src/Zcu/PerThread.zig
@@ -3,7 +3,7 @@ zcu: *Zcu,
/// Dense, per-thread unique index.
tid: Id,
-pub const Id = if (InternPool.single_threaded) enum { main } else enum(usize) { main, _ };
+pub const Id = if (InternPool.single_threaded) enum { main } else enum(u8) { main, _ };
pub fn astGenFile(
pt: Zcu.PerThread,