From 2132e3a3184eae0655a82965d1cc90c65eddfd98 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 23 Feb 2005 12:28:06 +0000 Subject: * cgen.c: Warning fixes. * config/tc-arc.c: Likewise. * config/tc-arm.c: Likewise. * config/tc-avr.c: Likewise. * config/tc-d10v.c: Likewise. * config/tc-d30v.c: Likewise. * config/tc-frv.c: Likewise. * config/tc-frv.h: Likewise. * config/tc-h8300.c: Likewise. * config/tc-h8500.c: Likewise. * config/tc-i370.c: Likewise. * config/tc-i960.c: Likewise. * config/tc-ia64.c: Likewise. * config/tc-ip2k.c: Likewise. * config/tc-m68hc11.c: Likewise. * config/tc-maxq.c: Likewise. * config/tc-mcore.c: Likewise. * config/tc-mips.c: Likewise. * config/tc-msp430.c: Likewise. * config/tc-pj.c: Likewise. * config/tc-ppc.c: Likewise. * config/tc-ppc.h: Likewise. * config/tc-s390.c: Likewise. * config/tc-sh.c: Likewise. * config/tc-sh64.c: Likewise. * config/tc-tic4x.c: Likewise. * config/tc-tic80.c: Likewise. * config/tc-v850.c: Likewise. * config/tc-vax.c: Likewise. * config/tc-w65.c: Likewise. * config/tc-xstormy16.c: Likewise. * config/tc-z8k.c: Likewise. --- gas/config/tc-pj.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'gas/config/tc-pj.c') diff --git a/gas/config/tc-pj.c b/gas/config/tc-pj.c index 8092d3b..2a7951e 100644 --- a/gas/config/tc-pj.c +++ b/gas/config/tc-pj.c @@ -1,6 +1,6 @@ /*- tc-pj.c -- Assemble code for Pico Java - Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc. + Copyright 1999, 2000, 2001, 2002, 2005 Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. @@ -253,8 +253,8 @@ void md_assemble (str) char *str; { - unsigned char *op_start; - unsigned char *op_end; + char *op_start; + char *op_end; pj_opc_info_t *opcode; char *output; @@ -268,8 +268,9 @@ md_assemble (str) str++; /* Find the op code end. */ - for (op_start = op_end = (unsigned char *) (str); - *op_end && !is_end_of_line[*op_end] && *op_end != ' '; + op_start = str; + for (op_end = str; + *op_end && !is_end_of_line[*op_end & 0xff] && *op_end != ' '; op_end++) nlen++; -- cgit v1.1