X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=gcc%2Fbc-typecd.h;h=2dcea0e08f5192e6cbb2ae60ed7431bf2d0c3e18;hb=75a6a643d3f672866266b0665f34e7ae3b2b0272;hp=243cd3dea63d136fad96dba565f0313511aa304c;hpb=9175412d6ac92ee9a762d3033177fcbf9359a75e;p=pf3gnuchains%2Fgcc-fork.git diff --git a/gcc/bc-typecd.h b/gcc/bc-typecd.h index 243cd3dea63..2dcea0e08f5 100644 --- a/gcc/bc-typecd.h +++ b/gcc/bc-typecd.h @@ -15,7 +15,8 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU CC; see the file COPYING. If not, write to -the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ +the Free Software Foundation, 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. */ #ifndef TYPECODE_H #define TYPECODE_H @@ -30,19 +31,19 @@ enum typecode }; /* Determine if a given type is integer. */ -#define TYPECODE_INTEGER_P(TYPECODE) ((TYPECODE) < SFcode) +#define TYPECODE_INTEGER_P(TYPECODE) ((int) (TYPECODE) < (int) SFcode) /* Determine if a given type is unsigned. */ #define TYPECODE_UNSIGNED_P(TYPECODE) \ - (TYPECODE_INTEGER_P(TYPECODE) && (TYPECODE) & 1) + (TYPECODE_INTEGER_P(TYPECODE) && (int) (TYPECODE) & 1) /* Determine if a given type is signed. */ #define TYPECODE_SIGNED_P(TYPECODE) \ - (TYPECODE_INTEGER_P(TYPECODE) && !((TYPECODE) & 1)) + (TYPECODE_INTEGER_P(TYPECODE) && !((int) (TYPECODE) & 1)) /* Determine if a given type is floating. */ #define TYPECODE_FLOAT_P(TYPECODE) \ - ((TYPECODE) < Pcode && !TYPECODE_INTEGER_P(TYPECODE)) + ((int) (TYPECODE) < (int) Pcode && !TYPECODE_INTEGER_P(TYPECODE)) /* Determine if the given type is arithmetic. */ #define TYPECODE_ARITH_P(TYPECODE) \