Bjarni Ingi Gislason wrote: > static inline int > bitmap_lookup (const void *table, ucs4_t uc) > { > unsigned int index1 = uc >> header_0; > if (index1 < ((const int *) table)[0]) > ... > unsigned int lookup3 = ((const unsigned int *) table)[lookup2 + > index3];
This is all correct. Look at the actual structure of such a table. E.g. in lib/unictype/pr_grapheme_link.h. > ../lib/unictype/bitmap.h:31:14: warning: comparison of integer expressions of > different signedness: 'unsigned int' and 'int' [-Wsign-compare] The Gnulib manual [1] explains how to silence specific warnings and recommends to silence -Wsign-compare in particular. Bruno [1] https://www.gnu.org/software/gnulib/manual/html_node/manywarnings.html