real: Fix compiler warnings with latest clang
realhash.c:295:11: error: implicit conversion from 'int' to 'char' changes value from 128 to -128 [-Werror,-Wconstant-conversion] *buf1 = 128; ~ ^~~ https://bugzilla.gnome.org/show_bug.cgi?id=775112
This commit is contained in:
parent
9ad9e06fcb
commit
cddfdaab78
@ -292,7 +292,7 @@ gst_rtsp_ext_real_calc_response_and_checksum (char *response, char *chksum,
|
|||||||
/* calculate response */
|
/* calculate response */
|
||||||
call_hash (field, buf, 64);
|
call_hash (field, buf, 64);
|
||||||
memset (buf1, 0, 64);
|
memset (buf1, 0, 64);
|
||||||
*buf1 = 128;
|
*buf1 = (char) 128;
|
||||||
memcpy (buf2, field + 16, 8);
|
memcpy (buf2, field + 16, 8);
|
||||||
i = (LE_32 ((buf2)) >> 3) & 0x3f;
|
i = (LE_32 ((buf2)) >> 3) & 0x3f;
|
||||||
if (i < 56)
|
if (i < 56)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user