aboutsummaryrefslogtreecommitdiff
path: root/gas/read.c
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>1994-01-15 17:33:16 +0000
committerDavid Edelsohn <dje.gcc@gmail.com>1994-01-15 17:33:16 +0000
commitd2550c72df564997c11052cc0f3f0094ad829dc2 (patch)
treece3d92b2b43177d417dbe8a32b5024396c8cec33 /gas/read.c
parente79cb10bbe0e33b78226b8d3b703d93b4e6b0841 (diff)
downloadgdb-d2550c72df564997c11052cc0f3f0094ad829dc2.zip
gdb-d2550c72df564997c11052cc0f3f0094ad829dc2.tar.gz
gdb-d2550c72df564997c11052cc0f3f0094ad829dc2.tar.bz2
* read.c (emit_expr): Fix computation of mask.
Diffstat (limited to 'gas/read.c')
-rw-r--r--gas/read.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/read.c b/gas/read.c
index 42bc75d..3f0a94f 100644
--- a/gas/read.c
+++ b/gas/read.c
@@ -356,7 +356,7 @@ read_a_source_file (name)
* If input_line_pointer [-1] == '\n' then we just
* scanned another line: so bump line counters.
*/
- if (is_end_of_line[input_line_pointer[-1]])
+ if (is_end_of_line[(unsigned char) input_line_pointer[-1]])
{
if (input_line_pointer[-1] == '\n')
bump_line_counters ();
@@ -1712,7 +1712,7 @@ emit_expr (exp, nbytes)
if (nbytes >= sizeof (valueT))
mask = 0;
else
- mask = ~0 << (BITS_PER_CHAR * nbytes); /* Don't store these bits. */
+ mask = ~(valueT) 0 << (BITS_PER_CHAR * nbytes); /* Don't store these bits. */
unmask = ~mask; /* Do store these bits. */