Browse Source

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

tags/v0.99.beta14
Sam Hocevar sam 16 years ago
parent
commit
321db7b450
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      tools/makefont.c

+ 2
- 2
tools/makefont.c View File

@@ -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…
Cancel
Save