[sr-dev] git:master:aae5fee5: Merge pull request #1497 from kamailio/vseva/fix_cdp

GitHub noreply at github.com
Thu Apr 12 13:58:59 CEST 2018


Module: kamailio
Branch: master
Commit: aae5fee5c4edb15eaba69c4ddf092bbc7138059f
URL: https://github.com/kamailio/kamailio/commit/aae5fee5c4edb15eaba69c4ddf092bbc7138059f

Author: ng-voice GmbH <info at ng-voice.com>
Committer: GitHub <noreply at github.com>
Date: 2018-04-12T13:58:54+02:00

Merge pull request #1497 from kamailio/vseva/fix_cdp

cdp: fix compilation warning

---

Modified: src/modules/cdp/diameter.h

---

Diff:  https://github.com/kamailio/kamailio/commit/aae5fee5c4edb15eaba69c4ddf092bbc7138059f.diff
Patch: https://github.com/kamailio/kamailio/commit/aae5fee5c4edb15eaba69c4ddf092bbc7138059f.patch

---

diff --git a/src/modules/cdp/diameter.h b/src/modules/cdp/diameter.h
index 2be25258c0..5a7cb0e0c5 100644
--- a/src/modules/cdp/diameter.h
+++ b/src/modules/cdp/diameter.h
@@ -74,7 +74,7 @@
 
 #define set_4bytes(_b,_v) \
 	{(_b)[0]=((_v)&0xff000000)>>24;(_b)[1]=((_v)&0x00ff0000)>>16;\
-	(_b)[2]=((_v)&0x0000ff00)>>8;(_b)[3]=((_v)&0x000000ff);}
+	(_b)[2]=((_v)&0x0000ff00)>>8;(_b)[3]=(unsigned char)((_v)&0x000000ff);}
 
 #define to_32x_len( _len_ ) \
 	( (_len_)+(((_len_)&3)?4-((_len_)&3):0) )




More information about the sr-dev mailing list