From adb7ce16c07d73fea855051d216b8b8008965a02 Mon Sep 17 00:00:00 2001
From: Paul Bakker
Date: Tue, 23 Aug 2011 14:55:55 +0000
Subject: [PATCH] - Fixed unconverted t_dbl into t_udbl
---
library/bignum.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/library/bignum.c b/library/bignum.c
index eabfbfe6f..c00697eb6 100644
--- a/library/bignum.c
+++ b/library/bignum.c
@@ -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