- Fixed unconverted t_dbl into t_udbl

This commit is contained in:
Paul Bakker 2011-08-23 14:55:55 +00:00
parent 4793cc4620
commit adb7ce16c0

View File

@ -1092,13 +1092,13 @@ int mpi_div_mpi( mpi *Q, mpi *R, const mpi *A, const mpi *B )
else
{
#if defined(POLARSSL_HAVE_LONGLONG)
t_dbl r;
t_udbl r;
r = (t_dbl) X.p[i] << biL;
r |= (t_dbl) X.p[i - 1];
r = (t_udbl) X.p[i] << biL;
r |= (t_udbl) X.p[i - 1];
r /= Y.p[t];
if( r > ((t_dbl) 1 << biL) - 1)
r = ((t_dbl) 1 << biL) - 1;
if( r > ((t_udbl) 1 << biL) - 1)
r = ((t_udbl) 1 << biL) - 1;
Z.p[i - t - 1] = (t_uint) r;
#else