static void doglyph(struct glyph *);
static bool
-getpix(unsigned char const data[YSIZE - 1], int x, int y, unsigned flags)
+getpix(unsigned char const data[YSIZE - 1], int x, int y, unsigned int flags)
{
/*
len = snprintf(fullname, sizeof(fullname),
FAMILY_NAME "%s%s", weight->suffix, width->suffix);
- assert(len >= 0 && (unsigned)len < sizeof(fullname));
+ assert(len >= 0 && (unsigned int)len < sizeof(fullname));
return fullname;
}
if (strcmp(a->name, ".notdef") == 0) return -1;
if (strcmp(b->name, ".notdef") == 0) return +1;
/* Then characters with Unicode code-points in order. */
- if ((unsigned)a->unicode < (unsigned)b->unicode) return -1;
- if ((unsigned)a->unicode > (unsigned)b->unicode) return +1;
+ if ((unsigned int)a->unicode < (unsigned int)b->unicode) return -1;
+ if ((unsigned int)a->unicode > (unsigned int)b->unicode) return +1;
/* Finally sort by glyph name for an arbitrary stable order. */
return namecmp(a->name, b->name);
}
static void
domosaic(struct glyph *g)
{
- unsigned code = g->data[0];
+ unsigned int code = g->data[0];
bool sep = (g->flags & SEP) != 0;
clearpath();
static void
domosaic4(struct glyph *g)
{
- unsigned code = g->data[0];
+ unsigned int code = g->data[0];
bool sep = (g->flags & SEP) != 0;
clearpath();
static void
domosaic8(struct glyph *g)
{
- unsigned code = g->data[0];
+ unsigned int code = g->data[0];
clearpath();
if (code & 1) tile(0, 7, 3, 10);
struct glyph const *a = *(struct glyph const **)va,
*b = *(struct glyph const **)vb;
- /* Cast to unsigned so -1 sorts last. */
- if ((unsigned)a->unicode < (unsigned)b->unicode) return -1;
- if ((unsigned)a->unicode > (unsigned)b->unicode) return +1;
+ /* Cast to unsigned int so -1 sorts last. */
+ if ((unsigned int)a->unicode < (unsigned int)b->unicode) return -1;
+ if ((unsigned int)a->unicode > (unsigned int)b->unicode) return +1;
return namecmp(a->name, b->name);
}