mirror of
https://git.savannah.gnu.org/git/gperf.git
synced 2025-12-02 13:09:22 +00:00
Use (unsigned char) cast in all cases.
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
2002-11-03 Bruno Haible <bruno@clisp.org>
|
||||
|
||||
* src/output.cc (Output::output): Set char_to_index to a cast in all
|
||||
cases. Avoids gcc warnings on the generated code.
|
||||
|
||||
* src/output.cc (Output_Enum): Prepend an underscore to field names.
|
||||
(Output_Expr1): Likewise.
|
||||
(Output::output_hash_function): Simplify the special case for "-k 1,$".
|
||||
|
||||
@@ -1464,7 +1464,7 @@ Output::output ()
|
||||
_struct_tag = (const_always[0] ? "const char *" : "char *");
|
||||
}
|
||||
|
||||
char_to_index = (option[SEVENBIT] ? "" : "(unsigned char)");
|
||||
char_to_index = "(unsigned char)";
|
||||
|
||||
printf ("/* ");
|
||||
if (option[KRC])
|
||||
|
||||
Reference in New Issue
Block a user