Minor
This commit is contained in:
parent
766bed901f
commit
5c0a4f2726
|
@ -201,12 +201,12 @@ FcHashGlyphName (const FcChar8 *name)
|
||||||
static void
|
static void
|
||||||
insert (FcGlyphName *gn, FcGlyphName **table, FcChar32 h)
|
insert (FcGlyphName *gn, FcGlyphName **table, FcChar32 h)
|
||||||
{
|
{
|
||||||
int i, r = 0;
|
unsigned int i, r = 0;
|
||||||
|
|
||||||
i = (int) (h % hash);
|
i = (int) (h % hash);
|
||||||
while (table[i])
|
while (table[i])
|
||||||
{
|
{
|
||||||
if (!r) r = (int) (h % rehash + 1);
|
if (!r) r = (h % rehash + 1);
|
||||||
i += r;
|
i += r;
|
||||||
if (i >= hash)
|
if (i >= hash)
|
||||||
i -= hash;
|
i -= hash;
|
||||||
|
@ -217,7 +217,7 @@ insert (FcGlyphName *gn, FcGlyphName **table, FcChar32 h)
|
||||||
static void
|
static void
|
||||||
dump (FcGlyphName * const *table, const char *name)
|
dump (FcGlyphName * const *table, const char *name)
|
||||||
{
|
{
|
||||||
int i;
|
unsigned int i;
|
||||||
|
|
||||||
printf ("static const FcGlyphId %s[%d] = {\n", name, hash);
|
printf ("static const FcGlyphId %s[%d] = {\n", name, hash);
|
||||||
|
|
||||||
|
@ -237,7 +237,7 @@ main (int argc, char **argv)
|
||||||
char line[1024];
|
char line[1024];
|
||||||
FILE *f;
|
FILE *f;
|
||||||
int i;
|
int i;
|
||||||
char *type;
|
const char *type;
|
||||||
|
|
||||||
i = 0;
|
i = 0;
|
||||||
while (argv[i+1])
|
while (argv[i+1])
|
||||||
|
|
Loading…
Reference in New Issue