diff options
author | Erik de Castro Lopo <erikd@mega-nerd.com> | 2017-01-16 19:31:22 +1100 |
---|---|---|
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2017-01-16 19:31:25 +1100 |
commit | 64b7142a3601717a533cd0d7e6ef19f8aaba3db8 (patch) | |
tree | 0ac0567ee443e56c08086dda3223da8573181da1 | |
parent | 9bb7a7e0f57b9e50c229cf152f77678502b386ba (diff) | |
download | flac-64b7142a3601717a533cd0d7e6ef19f8aaba3db8.tar.gz |
Final unsigned fixes
Found using the Makefile.lite build system.
-rw-r--r-- | src/plugin_common/tags.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugin_common/tags.c b/src/plugin_common/tags.c index a8e1181f..ae440c5d 100644 --- a/src/plugin_common/tags.c +++ b/src/plugin_common/tags.c @@ -118,8 +118,8 @@ static FLAC__uint16 *local__convert_utf8_to_ucs2(const char *src, uint32_t lengt /* calculate length */ { - const uint32_t char *s, *end; - for (s=(const uint32_t char *)src, end=s+length; s<end; chars++) { + const uint8_t *s, *end; + for (s=(const uint8_t *)src, end=s+length; s<end; chars++) { const uint32_t n = local__utf8len(s); if (n == 0) return 0; @@ -137,7 +137,7 @@ static FLAC__uint16 *local__convert_utf8_to_ucs2(const char *src, uint32_t lengt /* convert */ { - const uint32_t char *s = (const uint32_t char *)src; + const uint8_t *s = (const uint8_t *)src; FLAC__uint16 *u = out; for ( ; chars; chars--) s += local__utf8_to_ucs2(s, u++); @@ -200,7 +200,7 @@ static char *local__convert_ucs2_to_utf8(const FLAC__uint16 *src, uint32_t lengt /* convert */ { - uint32_t char *u = (uint32_t char *)out; + uint8_t *u = (uint8_t *)out; for ( ; *src; src++) u += local__ucs2_to_utf8(*src, u); local__ucs2_to_utf8(*src, u); |