aboutsummaryrefslogtreecommitdiff
path: root/zencore/include
diff options
context:
space:
mode:
Diffstat (limited to 'zencore/include')
-rw-r--r--zencore/include/zencore/iohash.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/zencore/include/zencore/iohash.h b/zencore/include/zencore/iohash.h
index 475bfe447..4a8fcd03f 100644
--- a/zencore/include/zencore/iohash.h
+++ b/zencore/include/zencore/iohash.h
@@ -25,7 +25,7 @@ class CompositeBuffer;
*/
struct IoHash
{
- uint8_t Hash[20];
+ alignas(uint32_t) uint8_t Hash[20];
static IoHash MakeFrom(const void* data /* 20 bytes */)
{
@@ -53,7 +53,7 @@ struct IoHash
static const int StringLength = 40;
typedef char String_t[StringLength + 1];
- static IoHash Zero; // Initialized to all zeros
+ static const IoHash Zero; // Initialized to all zeros
inline auto operator<=>(const IoHash& rhs) const = default;