]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(find_bracketed_repeat): Add a cast to suppress a warning.
authorJim Meyering <jim@meyering.net>
Thu, 29 Jun 2000 11:15:52 +0000 (11:15 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 29 Jun 2000 11:15:52 +0000 (11:15 +0000)
src/tr.c

index 7bf050ba9ee7c46686cef7ba0fa5cf2f96eced1f..bf9aece0a207f2b1cd667bfba27f0f5c952abf1a 100644 (file)
--- a/src/tr.c
+++ b/src/tr.c
@@ -879,7 +879,7 @@ find_bracketed_repeat (const struct E_string *es, size_t start_idx,
          /* Here, we have found [c*s] where s should be a string
             of octal (if it starts with `0') or decimal digits.  */
          {
-           const char *digit_str = &es->s[start_idx + 2];
+           const char *digit_str = (const char *) &es->s[start_idx + 2];
            unsigned long int tmp_ulong;
            char *d_end;
            int base = 10;