fixed rs_comm() bug with new compiler versions

bcn
Harald Wolff 2017-09-10 21:48:01 +02:00 committed by Harald Wolff
parent 48ac60139f
commit 3f2b2ce73a
1 changed files with 1 additions and 1 deletions

View File

@ -221,7 +221,7 @@ DISABLE_VS_WARNINGS(4200)
POP_WARNINGS
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 key_image &image,