This commit is contained in:
Behdad Esfahbod 2013-01-02 02:27:57 -06:00
parent 766bed901f
commit 5c0a4f2726
1 changed files with 23 additions and 23 deletions

View File

@ -201,12 +201,12 @@ FcHashGlyphName (const FcChar8 *name)
static void
insert (FcGlyphName *gn, FcGlyphName **table, FcChar32 h)
{
int i, r = 0;
unsigned int i, r = 0;
i = (int) (h % hash);
while (table[i])
{
if (!r) r = (int) (h % rehash + 1);
if (!r) r = (h % rehash + 1);
i += r;
if (i >= hash)
i -= hash;
@ -217,7 +217,7 @@ insert (FcGlyphName *gn, FcGlyphName **table, FcChar32 h)
static void
dump (FcGlyphName * const *table, const char *name)
{
int i;
unsigned int i;
printf ("static const FcGlyphId %s[%d] = {\n", name, hash);
@ -237,7 +237,7 @@ main (int argc, char **argv)
char line[1024];
FILE *f;
int i;
char *type;
const char *type;
i = 0;
while (argv[i+1])