mirror of
git://git.suckless.org/sbase
synced 2024-12-22 23:13:44 +00:00
tr: fix signed/unsigned warnings
This commit is contained in:
parent
1f3345b9e6
commit
cf714e6edb
6
tr.c
6
tr.c
@ -52,8 +52,7 @@ rangelen(struct range r)
|
||||
static size_t
|
||||
setlen(struct range *set, size_t setranges)
|
||||
{
|
||||
int i;
|
||||
size_t len = 0;
|
||||
size_t len = 0, i;
|
||||
|
||||
for (i = 0; i < setranges; i++)
|
||||
len += rangelen(set[i]);
|
||||
@ -175,8 +174,7 @@ int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
Rune r = 0, lastrune = 0;
|
||||
int i, m;
|
||||
size_t off1, off2;
|
||||
size_t off1, off2, m, i;
|
||||
|
||||
ARGBEGIN {
|
||||
case 'c':
|
||||
|
Loading…
Reference in New Issue
Block a user