1
0
mirror of https://git.savannah.gnu.org/git/gperf.git synced 2025-12-02 21:19:24 +00:00

Use (unsigned char) cast in all cases.

This commit is contained in:
Bruno Haible
2003-01-10 12:43:35 +00:00
parent 7dbc285db4
commit 3a01fe39b2
2 changed files with 4 additions and 1 deletions

View File

@@ -1,5 +1,8 @@
2002-11-03 Bruno Haible <bruno@clisp.org> 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. * src/output.cc (Output_Enum): Prepend an underscore to field names.
(Output_Expr1): Likewise. (Output_Expr1): Likewise.
(Output::output_hash_function): Simplify the special case for "-k 1,$". (Output::output_hash_function): Simplify the special case for "-k 1,$".

View File

@@ -1464,7 +1464,7 @@ Output::output ()
_struct_tag = (const_always[0] ? "const char *" : "char *"); _struct_tag = (const_always[0] ? "const char *" : "char *");
} }
char_to_index = (option[SEVENBIT] ? "" : "(unsigned char)"); char_to_index = "(unsigned char)";
printf ("/* "); printf ("/* ");
if (option[KRC]) if (option[KRC])