fixed rs_comm() bug with new compiler versions

Nan-2.0
Harald Wolff 2017-09-10 21:48:01 +02:00
parent 63263ea4fb
commit 1feeb4c2d2
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,