mediastreamer/mediastreamer-2.16.1-x86-fix-conversion-error.patch

23 lines
1.0 KiB
Diff
Raw Normal View History

From e0cafd72c071f956ca72b02f6568ce00a4a904f0 Mon Sep 17 00:00:00 2001
From: Ghislain MARY <ghislain.mary@belledonne-communications.com>
Date: Tue, 14 Nov 2017 16:42:06 +0100
Subject: [PATCH] Fix conversion errors with some compilers.
---
include/mediastreamer2/msfilter.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/mediastreamer2/msfilter.h b/include/mediastreamer2/msfilter.h
index 4775cd57a..02991629f 100644
--- a/include/mediastreamer2/msfilter.h
+++ b/include/mediastreamer2/msfilter.h
@@ -596,7 +596,7 @@ MS2_PUBLIC MS2_DEPRECATED void ms_filter_log_statistics(void);
the method index (_cnt_) and the argument size */
/* I hope using this to avoid type mismatch (calling a method on the wrong filter)*/
#define MS_FILTER_METHOD_ID(_id_,_cnt_,_argsize_) \
- ( (((unsigned long)(_id_)) & 0xFFFF)<<16 | (_cnt_<<8) | (_argsize_ & 0xFF ))
+ (unsigned int)(((((unsigned int)(_id_)) & 0xFFFF)<<16) | (((unsigned int)(_cnt_))<<8) | (((unsigned int)_argsize_) & 0xFF))
/**
* Macro to create a method id, unique per filter.