fix return value of ungetc when argument is outside unsigned char range
[musl] / crt / crtn.c