summaryrefslogtreecommitdiffstats
path: root/gas/config/tc-mcore.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2000-06-02 02:52:10 +0000
committerAlan Modra <amodra@gmail.com>2000-06-02 02:52:10 +0000
commitb75c0c920f88f3b6a5877509b14f59b5d86f88b5 (patch)
treefbdf3fdb737ae2096200576af5b22eb8817603af /gas/config/tc-mcore.c
parentf0d4cc9e0ec5ad1533782d32bbf5029b2601828f (diff)
downloadppe42-binutils-b75c0c920f88f3b6a5877509b14f59b5d86f88b5.tar.gz
ppe42-binutils-b75c0c920f88f3b6a5877509b14f59b5d86f88b5.zip
is_end_of_line fixes.
Diffstat (limited to 'gas/config/tc-mcore.c')
-rw-r--r--gas/config/tc-mcore.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gas/config/tc-mcore.c b/gas/config/tc-mcore.c
index 3b232148cf..0284c00535 100644
--- a/gas/config/tc-mcore.c
+++ b/gas/config/tc-mcore.c
@@ -239,7 +239,7 @@ mcore_cons (nbytes)
int commas = 1;
/* Count the number of commas on the line. */
- while (! is_end_of_line [* ptr])
+ while (! is_end_of_line [(unsigned char) * ptr])
commas += * ptr ++ == ',';
poolspan += nbytes * commas;
@@ -268,7 +268,7 @@ mcore_float_cons (float_type)
#endif
/* Count the number of commas on the line. */
- while (! is_end_of_line [* ptr])
+ while (! is_end_of_line [(unsigned char) * ptr])
commas += * ptr ++ == ',';
/* We would like to compute "hex_float (float_type) * commas"
@@ -301,7 +301,7 @@ mcore_stringer (append_zero)
estimate, which is OK, and automatically allows for the
appending a zero byte, since the real string(s) is/are
required to be enclosed in double quotes. */
- while (! is_end_of_line [* ptr])
+ while (! is_end_of_line [(unsigned char) * ptr])
ptr ++;
poolspan += ptr - input_line_pointer;
@@ -975,7 +975,7 @@ md_assemble (str)
/* Find the op code end. */
for (op_start = op_end = str;
- * op_end && nlen < 20 && !is_end_of_line [*op_end] && *op_end != ' ';
+ nlen < 20 && !is_end_of_line [(unsigned char) *op_end] && *op_end != ' ';
op_end++)
{
name[nlen] = op_start[nlen];
OpenPOWER on IntegriCloud