General: Avoid implicit conversion to char when changes value to negative.

clang 5.0 warned about this.

ASTERISK-27557

Change-Id: I7cceaa88e147cbdf81a3a7beec5c1c20210fa41e
This commit is contained in:
Alexander Traud
2018-01-06 08:25:14 +01:00
parent 4eccf697e1
commit f84fcc1fc1
4 changed files with 44 additions and 43 deletions

View File

@@ -807,7 +807,7 @@ static void sms_log(sms_t * h, char status)
*p++ = '\\';
*p++ = 'r';
} else if (h->ud[n] < 32 || h->ud[n] == 127) {
*p++ = 191;
*p++ = 0xbf;
} else {
*p++ = h->ud[n];
}