From b3967c9db9fcd4febc0b7ef6558474d8c4ab8828 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Sun, 11 Aug 2024 00:00:17 -0700 Subject: [PATCH] make this struct packed because it fits cleanly into a u128 --- ulid.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ulid.zig b/ulid.zig index 71ef3b997d91e5dc3a8be05dc142f3924bca1f83..2d745e7208024c61e0c5f0249c3a30882da4c5e3 100644 --- a/ulid.zig +++ b/ulid.zig @@ -30,7 +30,7 @@ pub const Factory = struct { /// |----------| |----------------| /// Timestamp Randomness /// 48bits 80bits -pub const ULID = struct { +pub const ULID = packed struct { timestamp: u48, randomnes: u80, -- 2.54.0