mirror of
https://git.robbyzambito.me/zaprus
synced 2025-12-20 16:24:50 +00:00
Explicitly specify the size of connection options
This makes it so specifying the wrong number of options would actually throw a compile time error.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user