commit | ef5087d150d5804e239878b17f357c9fee627883 | [log] [tgz] |
---|---|---|
author | Sander Niemeijer <svniemeijer@mac.com> | Sat Aug 16 12:45:52 2014 +0200 |
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Thu Aug 21 23:48:14 2014 +0200 |
tree | e95f94d1f91f2d52ca886a9947e93e44c9ee059a | |
parent | 8ef7088bb9b08058d4e679e7f85177adf073a899 [diff] [blame] |
Added explicit casts to prevent compiler warnings when trying to build for iOS
diff --git a/include/polarssl/bn_mul.h b/include/polarssl/bn_mul.h index 64b59ff..a8f0d22 100644 --- a/include/polarssl/bn_mul.h +++ b/include/polarssl/bn_mul.h
@@ -833,8 +833,8 @@ #define MULADDC_CORE \ r = *(s++) * (t_udbl) b; \ - r0 = r; \ - r1 = r >> biL; \ + r0 = (t_uint) r; \ + r1 = (t_uint)( r >> biL ); \ r0 += c; r1 += (r0 < c); \ r0 += *d; r1 += (r0 < *d); \ c = r1; *(d++) = r0;