Various cleanups and fixed by Marc and Ralf to start the OpenTLS project
[openssl.git] / crypto / bn / bn_mont.c
index e0aa3c769d227dc5f58e9052627b6edb070819d4..a5640b5a3b5b9a63bc83b5bf43e4191e7d578a54 100644 (file)
@@ -235,7 +235,7 @@ printf("number BN_from_montgomery\n");
                /* hmm... if a is between i and 2*i, things are bad */
                if (a->top > i)
                        {
-                       j=bn_add_words(ret->d,ret->d,&(a->d[i]),i);
+                       j=(int)(bn_add_words(ret->d,ret->d,&(a->d[i]),i));
                        if (j) /* overflow */
                                bn_sub_words(ret->d,ret->d,mont->N.d,i);
                        }