diff options
| author | Stefan Boberg <[email protected]> | 2021-09-02 18:08:48 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-09-02 18:08:48 +0200 |
| commit | 8fdc9549bde4e454b47be5149989c1f10fe635ae (patch) | |
| tree | 7632ab04a38061a83a90a466869951988a053213 /zencore/include | |
| parent | IoHash::HashMemory -> IoHash::HashBuffer for consistency with UE5 code (diff) | |
| download | zen-8fdc9549bde4e454b47be5149989c1f10fe635ae.tar.xz zen-8fdc9549bde4e454b47be5149989c1f10fe635ae.zip | |
Made IoHash::Zero const, made IoHash alignment explicit
Diffstat (limited to 'zencore/include')
| -rw-r--r-- | zencore/include/zencore/iohash.h | 4 |
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; |