Преглед изворни кода

* makefont is only a system tool: use htons/htonl instead of hton16/hton32.

tags/v0.99.beta14
Sam Hocevar sam пре 16 година
родитељ
комит
321db7b450
1 измењених фајлова са 2 додато и 2 уклоњено
  1. +2
    -2
      tools/makefont.c

+ 2
- 2
tools/makefont.c Прегледај датотеку

@@ -436,13 +436,13 @@ static int printf_unicode(struct glyph *g)

static int printf_u32(char const *fmt, uint32_t i)
{
uint32_t ni = hton32(i);
uint32_t ni = htonl(i);
return printf_hex(fmt, (uint8_t *)&ni, 4);
}

static int printf_u16(char const *fmt, uint16_t i)
{
uint16_t ni = hton16(i);
uint16_t ni = htons(i);
return printf_hex(fmt, (uint8_t *)&ni, 2);
}



Loading…
Откажи
Сачувај