diff options
Diffstat (limited to 'coreutils/tr.c')
-rw-r--r-- | coreutils/tr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/tr.c b/coreutils/tr.c index 0d3284900..8b2d30802 100644 --- a/coreutils/tr.c +++ b/coreutils/tr.c | |||
@@ -219,7 +219,7 @@ int tr_main(int argc ATTRIBUTE_UNUSED, char **argv) | |||
219 | 219 | ||
220 | for (;;) { | 220 | for (;;) { |
221 | /* If we're out of input, flush output and read more input. */ | 221 | /* If we're out of input, flush output and read more input. */ |
222 | if (in_index == read_chars) { | 222 | if ((ssize_t)in_index == read_chars) { |
223 | if (out_index) { | 223 | if (out_index) { |
224 | xwrite(STDOUT_FILENO, (char *)output, out_index); | 224 | xwrite(STDOUT_FILENO, (char *)output, out_index); |
225 | out_index = 0; | 225 | out_index = 0; |