]> Savannah Git Hosting - gnulib.git/commit
unictype/category-of: Fix integer overflow in generated table.
authorBruno Haible <bruno@clisp.org>
Mon, 16 Sep 2024 21:37:44 +0000 (23:37 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 16 Sep 2024 21:37:44 +0000 (23:37 +0200)
commit8b238688a46de6f15f39d7f9212358dc499e5ba6
treec0ba8fe88d4620c084903d514c18765568ba4a38
parent9fee05f0622284fd40358dadbc20e3e9ed532abc
unictype/category-of: Fix integer overflow in generated table.

Reported by clang through -Wconstant-conversion warnings.

* lib/gen-uni-tables.c (output_category): Generate a level2 array of
'unsigned short', not 'short', values.
* lib/unictype/categ_of.h: Regenerated.
* lib/unictype/categ_of.c (lookup_withtable): Update accordingly.
ChangeLog
lib/gen-uni-tables.c
lib/unictype/categ_of.c
lib/unictype/categ_of.h