]> git.llucax.com Git - z.facultad/75.29/dale.git/commitdiff
Bugfix de cast a la C++.
authorLeandro Lucarella <luca@llucax.hn.org>
Tue, 4 Oct 2005 02:12:36 +0000 (02:12 +0000)
committerLeandro Lucarella <luca@llucax.hn.org>
Tue, 4 Oct 2005 02:12:36 +0000 (02:12 +0000)
src/number.h

index 57fb1b82eff9ba76065fb468fa18859d3a1a9df9..99eec8c22534d6815c8177fda66e77a58d97a4e9 100644 (file)
@@ -356,7 +356,7 @@ number < N, E > naif(const number< N, E > &u, const number< N, E > &v)
                 */
                E tmp;
                tmp = static_cast< E >(u.chunk[0]) * static_cast< E >(v.chunk[0]);
-               num_type tnum = num_type(static_cast< N* >(&tmp), 2, sign);
+               num_type tnum = num_type(reinterpret_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;