Use pointer for rs_comm_size

This commit is contained in:
Kumi 2017-12-28 20:46:17 +01:00
parent 4a2da94cd0
commit 084594c3d8

View file

@ -323,7 +323,7 @@ namespace Crypto {
};
static inline size_t rs_comm_size(size_t pubs_count) {
return sizeof(rs_comm) + pubs_count * sizeof(rs_comm().ab[0]);
return sizeof(rs_comm) + pubs_count * sizeof(((rs_comm*)0)->ab[0]);
}
void crypto_ops::generate_ring_signature(const Hash &prefix_hash, const KeyImage &image,