mirror of
https://git.savannah.gnu.org/git/gperf.git
synced 2025-12-02 13:09:22 +00:00
Avoid g++ -Wold-style-cast warnings.
This commit is contained in:
@@ -217,7 +217,7 @@ parse_line (const char *line, const char *delimiters)
|
||||
}
|
||||
if (code > UCHAR_MAX)
|
||||
fprintf (stderr, "octal escape out of range: %s\n", line);
|
||||
*kp = (char) code;
|
||||
*kp = static_cast<char>(code);
|
||||
break;
|
||||
}
|
||||
case 'x':
|
||||
@@ -240,7 +240,7 @@ parse_line (const char *line, const char *delimiters)
|
||||
fprintf (stderr, "hexadecimal escape without any hex digits: %s\n", line);
|
||||
if (code > UCHAR_MAX)
|
||||
fprintf (stderr, "hexadecimal escape out of range: %s\n", line);
|
||||
*kp = (char) code;
|
||||
*kp = static_cast<char>(code);
|
||||
break;
|
||||
}
|
||||
case '\\': case '\'': case '"':
|
||||
|
||||
Reference in New Issue
Block a user