Some adjustments

This commit is contained in:
MoneroOcean
2018-03-24 22:35:29 +01:00
parent 51fb2361ec
commit ef1912684b
3 changed files with 81 additions and 34 deletions

View File

@@ -19,9 +19,13 @@ namespace crypto {
POD_CLASS hash {
char data[HASH_SIZE];
};
POD_CLASS hash8 {
char data[8];
};
#pragma pack(pop)
static_assert(sizeof(hash) == HASH_SIZE, "Invalid structure size");
static_assert(sizeof(hash8) == 8, "Invalid structure size");
/*
Cryptonight hash functions
@@ -58,3 +62,4 @@ namespace crypto {
}
CRYPTO_MAKE_HASHABLE(hash)
CRYPTO_MAKE_COMPARABLE(hash8)