diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2016-11-25 23:51:00 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2016-11-25 23:51:23 +0200 |
commit | cddfdaab78a279cf47ddf4011a4eb0d18918fc7c (patch) | |
tree | a51665fe1b23c85a52d979ff440412c15d192fae | |
parent | 9ad9e06fcb9bffaa695e5eadb48a2b78f7584338 (diff) |
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
-rw-r--r-- | gst/realmedia/realhash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/realmedia/realhash.c b/gst/realmedia/realhash.c index 97b1390f..4a18189c 100644 --- a/gst/realmedia/realhash.c +++ b/gst/realmedia/realhash.c @@ -292,7 +292,7 @@ gst_rtsp_ext_real_calc_response_and_checksum (char *response, char *chksum, /* calculate response */ call_hash (field, buf, 64); memset (buf1, 0, 64); - *buf1 = 128; + *buf1 = (char) 128; memcpy (buf2, field + 16, 8); i = (LE_32 ((buf2)) >> 3) & 0x3f; if (i < 56) |