1
0
mirror of https://git.savannah.gnu.org/git/gperf.git synced 2025-12-02 13:09:22 +00:00

Correct width of columns when outputting the asso_values array.

Patch by Frank Wojcik <frankw@touristinresidence.com>.

* src/output.cc (Output::output_hash_function): Increase the
field_width by 1 if _max_hash_value+1 is a power of 10.
This commit is contained in:
Bruno Haible
2018-09-08 15:36:36 +02:00
parent 0d37a8763d
commit a720310c28
2 changed files with 11 additions and 2 deletions

View File

@@ -1,3 +1,10 @@
2018-09-08 Bruno Haible <bruno@clisp.org>
Correct width of columns when outputting the asso_values array.
Patch by Frank Wojcik <frankw@touristinresidence.com>.
* src/output.cc (Output::output_hash_function): Increase the
field_width by 1 if _max_hash_value+1 is a power of 10.
2018-07-25 Bruno Haible <bruno@clisp.org>
Avoid "implicit fallthrough" warnings in the generated code.