Fix wconversion with old gcc (e.g. 4.3)

This commit is contained in:
Max Bruckner
2017-03-18 17:52:04 +01:00
parent 4ec6e76ea2
commit 466eb8e3f8
2 changed files with 6 additions and 6 deletions

View File

@ -230,11 +230,11 @@ static void cJSONUtils_InplaceDecodePointerString(unsigned char *string)
for (; *string; (void)s2++, string++)
{
*s2 = (*string != '~')
*s2 = (unsigned char) ((*string != '~')
? (*string)
: ((*(++string) == '0')
? '~'
: '/');
: '/'));
}
*s2 = '\0';