(It was causing failures in Shepherd.)
*d++ = *s++;
else
{
- uns val = ((byte)*s < NCC_MAX) ? NCC_CHARS[(byte)*s] : *s;
+ uns val = (byte)(((byte)*s < NCC_MAX) ? NCC_CHARS[(byte)*s] : *s);
*d++ = '%';
*d++ = enhex(val >> 4);
*d++ = enhex(val & 0x0f);
{
if (dest >= end)
return URL_ERR_TOO_LONG;
- if (*srcb < NCC_MAX)
+ if ((byte)*srcb < NCC_MAX)
*dest++ = NCC_CHARS[*srcb++];
else if (*srcb >= 0x20 && *srcb < 0x7f)
*dest++ = *srcb++;
else
{
*dest++ = '%';
- *dest++ = enhex(*srcb >> 4);
+ *dest++ = enhex((byte)*srcb >> 4);
*dest++ = enhex(*srcb++ & 0x0f);
}
}