Avoid -Wnarrowing warnings from quote_char()
[deliverable/binutils-gdb.git] / gdb / linespec.c
index 73fbe4af3be713281534f939e322af1d7e15547a..fd88007c130348bc939fad92a93c5577243f2d6e 100644 (file)
@@ -2894,7 +2894,7 @@ complete_linespec_component (linespec_parser *parser,
             new "quote" char.  */
          if (tracker.quote_char ())
            {
-             char quote_char_str[2] = { tracker.quote_char () };
+             char quote_char_str[2] = { (char) tracker.quote_char () };
 
              fn = reconcat (fn, fn, quote_char_str, (char *) NULL);
              tracker.set_quote_char (':');
This page took 0.025016 seconds and 4 git commands to generate.