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

Change the 'len' parameter type to 'size_t'.

This commit is contained in:
Bruno Haible
2016-11-26 17:54:33 +01:00
parent 31784d388f
commit d519d1a821
19 changed files with 66 additions and 49 deletions

View File

@@ -56,7 +56,7 @@ inline
#endif
#endif
static unsigned int
hash (register const char *str, register unsigned int len)
hash (register const char *str, register size_t len)
{
static const unsigned short asso_values[] =
{
@@ -1808,7 +1808,7 @@ __attribute__ ((__gnu_inline__))
#endif
#endif
const struct charset *
in_word_set (register const char *str, register unsigned int len)
in_word_set (register const char *str, register size_t len)
{
if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
{