summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@fb.com>2014-11-06 16:32:29 -0600
committerJim Meyering <meyering@fb.com>2014-11-30 18:59:35 -0800
commit1743b7f3cb96a25a68ea8b230c2c322d8538ba1e (patch)
tree5b774375189b5b9d0b1fca2a38459d8a27ad47ab
parentc750cb5fd1c64e15a21c8686b4de6ec4d288e134 (diff)
downloadsed-1743b7f3cb96a25a68ea8b230c2c322d8538ba1e.tar.gz
maint: declare several "int" locals to be of type size_t
* sed/compile.c (compile_program): Using "int" was wrong: not only too narrow, but would also evoke warnings from gcc when comparing with variables of unsigned type.
-rw-r--r--sed/compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sed/compile.c b/sed/compile.c
index b94b199..6cb1783 100644
--- a/sed/compile.c
+++ b/sed/compile.c
@@ -1286,7 +1286,7 @@ compile_program(vector)
if (mb_cur_max > 1)
{
- int i, j, idx, src_char_num;
+ size_t i, j, idx, src_char_num;
size_t *src_lens = MALLOC(len, size_t);
char **trans_pairs;
size_t mbclen;