summaryrefslogtreecommitdiff
path: root/src/main.zig
diff options
context:
space:
mode:
authorRobby Zambito <contact@robbyzambito.me>2025-04-03 10:26:39 -0400
committerRobby Zambito <contact@robbyzambito.me>2025-04-06 13:08:09 -0400
commitf5f268baf7f84c941d3c42fd2239d8a981eec50e (patch)
tree3274d4afbdcb3172326e6e4fb5f95eacfd2dfd2b /src/main.zig
parent08e5376fa03fb63607d6c69499102c65907b8335 (diff)
Explicitly specify the size of connection options
This makes it so specifying the wrong number of options would actually throw a compile time error.
Diffstat (limited to 'src/main.zig')
-rw-r--r--src/main.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.zig b/src/main.zig
index 5741b2d..cacd2fc 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -7,7 +7,7 @@ const SaprusPacketType = enum(u16) {
connection = 0x00E9,
};
-const SaprusConnectionOptions = packed struct {
+const SaprusConnectionOptions = packed struct(u8) {
opt1: bool = false,
opt2: bool = false,
opt3: bool = false,