diff options
author | Jim Meyering <jim@meyering.net> | 1996-02-29 02:53:37 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-02-29 02:53:37 +0000 |
commit | 9a181424acebad95e109cb97dbf49a894d1e80b3 (patch) | |
tree | 6f39131ba41dac7ff077b8e446a71cfddc18b3e6 | |
parent | 4e3478c9d66f9a0e8bf80621705fb33d3483d0da (diff) | |
download | coreutils-9a181424acebad95e109cb97dbf49a894d1e80b3.tar.xz |
(eval6): Cast strlen to int to avoid warning from gcc -Wall.
-rw-r--r-- | src/expr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/expr.c b/src/expr.c index f31ce0082..2f1970da8 100644 --- a/src/expr.c +++ b/src/expr.c @@ -522,7 +522,7 @@ eval6 (void) tostring (l); tostring (r); v = int_value (strcspn (l->u.s, r->u.s) + 1); - if (v->u.i == strlen (l->u.s) + 1) + if (v->u.i == (int) strlen (l->u.s) + 1) v->u.i = 0; freev (l); freev (r); @@ -536,7 +536,7 @@ eval6 (void) i2 = eval6 (); tostring (l); if (!toarith (i1) || !toarith (i2) - || i1->u.i > strlen (l->u.s) + || i1->u.i > (int) strlen (l->u.s) || i1->u.i <= 0 || i2->u.i <= 0) v = str_value (""); else |