[sr-dev] git:master:f6921b92: sdpops: cast in dbg message to avoid compile warning on 32b systems
Daniel-Constantin Mierla
miconda at gmail.com
Wed Aug 22 12:04:42 CEST 2018
Module: kamailio
Branch: master
Commit: f6921b92d382db3c0a72bd1d97eb46d1f4aee2d7
URL: https://github.com/kamailio/kamailio/commit/f6921b92d382db3c0a72bd1d97eb46d1f4aee2d7
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2018-08-22T12:03:52+02:00
sdpops: cast in dbg message to avoid compile warning on 32b systems
---
Modified: src/modules/sdpops/sdpops_mod.c
---
Diff: https://github.com/kamailio/kamailio/commit/f6921b92d382db3c0a72bd1d97eb46d1f4aee2d7.diff
Patch: https://github.com/kamailio/kamailio/commit/f6921b92d382db3c0a72bd1d97eb46d1f4aee2d7.patch
---
diff --git a/src/modules/sdpops/sdpops_mod.c b/src/modules/sdpops/sdpops_mod.c
index b47f824e33..b317c0ac9b 100644
--- a/src/modules/sdpops/sdpops_mod.c
+++ b/src/modules/sdpops/sdpops_mod.c
@@ -512,8 +512,9 @@ int sdp_remove_line_by_prefix(sip_msg_t* msg, str* prefix, str* media)
LM_DBG("range for media type %.*s: %ld - %ld\n",
sdp_stream->media.len, sdp_stream->media.s,
- sdp_stream->raw_stream.s - body.s,
- sdp_stream->raw_stream.s + sdp_stream->raw_stream.len - body.s
+ (long int)(sdp_stream->raw_stream.s - body.s),
+ (long int)(sdp_stream->raw_stream.s
+ + sdp_stream->raw_stream.len - body.s)
);
found += sdp_remove_line_lump_by_prefix(msg,&(sdp_stream->raw_stream),prefix);
More information about the sr-dev
mailing list