From 251fc920c714e08bd960d517e733c6840e6d83d8 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Thu, 12 Oct 2006 05:25:34 +0000 Subject: 2006-11-12 Joseph Myers * math/atest-exp.c (main): Cast hex value to mp_limb_t before shifting. * math/atest-exp2.c (read_mpn_hex): Likewise. * math/atest-sincos.c (main): Likewise. --- math/atest-exp2.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'math/atest-exp2.c') diff --git a/math/atest-exp2.c b/math/atest-exp2.c index 33d942f..2c028a2 100644 --- a/math/atest-exp2.c +++ b/math/atest-exp2.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1997, 1998, 2000 Free Software Foundation, Inc. +/* Copyright (C) 1997, 1998, 2000, 2006 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Geoffrey Keating , 1997. @@ -73,8 +73,9 @@ read_mpn_hex(mp_limb_t *x, const char *str) memset (x, 0, sizeof (mp1)); for (i = -1; i < 100 && i < FRAC / 4; ++i) - x[(FRAC - i * 4 - 4) / mpbpl] |= ((strchr (hexdig, str[i + 1]) - hexdig) - << (FRAC - i * 4 - 4) % mpbpl); + x[(FRAC - i * 4 - 4) / mpbpl] |= ((mp_limb_t) (strchr (hexdig, str[i + 1]) + - hexdig) + << (FRAC - i * 4 - 4) % mpbpl); } static mp_limb_t *get_log2(void) __attribute__((const)); -- cgit v1.1