The uint8 ensures no signs get in the way. We're fine with them but
this way is even clearer.
Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
char **utf8) // OUT:
{
uint32 i;
- char *p;
- char *q;
+ uint8 *p;
+ uint8 *q;
uint32 len;
union {
uint32 word;
*/
len = 0;
- p = (char *) utf32;
+ p = (uint8 *) utf32;
while (TRUE) {
value.bytes[0] = *p++;
* UTF8 equivalent.
*/
- p = (char *) utf32;
- q = *utf8;
+ p = (uint8 *) utf32;
+ q = (uint8 *) *utf8;
for (i = 0; i < len; i++) {
value.bytes[0] = *p++;