Skip to content

Commit

Permalink
Make core.Hash extern to guarantee its layout
Browse files Browse the repository at this point in the history
  • Loading branch information
InKryption committed Jun 11, 2024
1 parent c8b88e0 commit 596f1f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/hash.zig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const base58 = @import("base58-zig");

pub const HASH_SIZE: usize = 32;

pub const Hash = struct {
pub const Hash = extern struct {
data: [HASH_SIZE]u8,

pub fn default() Hash {
Expand Down

0 comments on commit 596f1f4

Please sign in to comment.