mirror of
https://git.robbyzambito.me/zaprus
synced 2026-02-04 08:24:52 +00:00
This commit is contained in:
@@ -196,7 +196,7 @@ test "testing variable length zero copy struct" {
|
||||
var msg_bytes: [try Message.calcSize(.relay, payload.len)]u8 align(@alignOf(Message)) = undefined;
|
||||
|
||||
// Create a view of the byte slice as a Message
|
||||
const msg: *Message = .init(.relay, &msg_bytes);
|
||||
const msg: *align(1) Message = .init(.relay, &msg_bytes);
|
||||
|
||||
{
|
||||
// Set the message values
|
||||
@@ -234,7 +234,7 @@ test "testing variable length zero copy struct" {
|
||||
var msg_bytes: [try Message.calcSize(.connection, payload.len)]u8 align(@alignOf(Message)) = undefined;
|
||||
|
||||
// Create a view of the byte slice as a Message
|
||||
const msg: *Message = .init(.connection, &msg_bytes);
|
||||
const msg: *align(1) Message = .init(.connection, &msg_bytes);
|
||||
|
||||
{
|
||||
// Initializing connection header values
|
||||
|
||||
Reference in New Issue
Block a user