summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2007-07-15 22:43:40 +0000
committerTom Lane2007-07-15 22:43:40 +0000
commit10a91e0add10790ad1a7531697b7cbb3672495b5 (patch)
tree650ae8b379b2e513d61904a375442c998e043a61
parentaf18d3d05c59d72c3a32f988516a5d5d52d4c28d (diff)
Silence Solaris compiler warning, per buildfarm.
-rw-r--r--contrib/pgcrypto/imath.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/pgcrypto/imath.c b/contrib/pgcrypto/imath.c
index 197e24f74b..63b294af24 100644
--- a/contrib/pgcrypto/imath.c
+++ b/contrib/pgcrypto/imath.c
@@ -27,7 +27,7 @@
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
-/* $PostgreSQL: pgsql/contrib/pgcrypto/imath.c,v 1.6 2006/10/04 00:29:46 momjian Exp $ */
+/* $PostgreSQL: pgsql/contrib/pgcrypto/imath.c,v 1.7 2007/07/15 22:43:40 tgl Exp $ */
#include "postgres.h"
#include "px.h"
@@ -3199,7 +3199,7 @@ s_norm(mp_int a, mp_int b)
mp_digit d = b->digits[MP_USED(b) - 1];
int k = 0;
- while (d < (mp_digit) (1 << (MP_DIGIT_BIT - 1)))
+ while (d < (mp_digit) ((mp_digit) 1 << (MP_DIGIT_BIT - 1)))
{ /* d < (MP_RADIX / 2) */
d <<= 1;
++k;