[PPL-devel] [GIT] ppl/ppl(master): Size has to be specified in bits.
Abramo Bagnara
abramo.bagnara at gmail.com
Mon Apr 20 15:21:22 CEST 2009
Module: ppl/ppl
Branch: master
Commit: f4152242e68e80d38a8ed790fdfd23116c79b1f3
URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=f4152242e68e80d38a8ed790fdfd23116c79b1f3
Author: Abramo Bagnara <abramo.bagnara at gmail.com>
Date: Mon Apr 20 15:21:57 2009 +0200
Size has to be specified in bits.
---
src/Bit_Row.inlines.hh | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/Bit_Row.inlines.hh b/src/Bit_Row.inlines.hh
index 5321f41..0803ffe 100644
--- a/src/Bit_Row.inlines.hh
+++ b/src/Bit_Row.inlines.hh
@@ -50,11 +50,11 @@ Bit_Row::Bit_Row(const Bit_Row& y, const Bit_Row& z) {
const mp_size_t y_size = y.vec->_mp_size;
const mp_size_t z_size = z.vec->_mp_size;
if (y_size < z_size) {
- mpz_init2(vec, z_size);
+ mpz_init2(vec, z_size * sizeof(mp_limb_t) * 8);
union_helper(y, z);
}
else {
- mpz_init2(vec, y_size);
+ mpz_init2(vec, y_size * sizeof(mp_limb_t) * 8);
union_helper(z, y);
}
}
More information about the PPL-devel
mailing list