summaryrefslogtreecommitdiffstats
path: root/usr.bin/more/ch.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/more/ch.c')
-rw-r--r--usr.bin/more/ch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/more/ch.c b/usr.bin/more/ch.c
index a971c76..ab12946 100644
--- a/usr.bin/more/ch.c
+++ b/usr.bin/more/ch.c
@@ -96,7 +96,7 @@ static off_t last_piped_pos;
#define ch_get() \
((buf_head->block == ch_block && \
ch_offset < buf_head->datasize) ? \
- buf_head->data[ch_offset] & 0xff : fch_get())
+ (unsigned char)buf_head->data[ch_offset] : fch_get())
static
fch_get()
@@ -130,7 +130,7 @@ fch_get()
* find it already buffered.
*/
if (ispipe)
- return(bp->data[ch_offset] & 0xff);
+ return((unsigned char)bp->data[ch_offset]);
goto found;
}
/*
@@ -233,7 +233,7 @@ found:
*/
goto read_more;
- return(bp->data[ch_offset] & 0xff);
+ return((unsigned char)bp->data[ch_offset]);
}
/*
OpenPOWER on IntegriCloud