// Devuelve referencia a 'átomo' i del chunk (no debería ser necesario
// si la multiplicación es un método de este objeto).
- native_type& operator[] (size_type i) {
+ native_type& operator[] (size_type i)
+ {
return chunk[i];
}
friend std::ostream& operator<< (std::ostream& os, const number< NN, EE>& n);
// Atributos
+ //private:
chunk_type chunk;
sign_type sign;
* buffer. Si, es feo.
*/
E tmp;
- tmp = (E) u.chunk[0] * (E) v.chunk[0];
- num_type tnum = num_type((N *) &tmp, 2, sign);
+ tmp = static_cast< E >(u.chunk[0]) * static_cast< E >(v.chunk[0]);
+ num_type tnum = num_type(static_cast< N* >(&tmp), 2, sign);
//std::cout << "T:" << tnum << " " << tmp << "\n";
//printf("1: %lu %lu %llu\n", u.chunk[0], v.chunk[0], tmp);
return tnum;