Fix for build with UBSan 52/135452/2 accepted/tizen/unified/20170911.060222 submit/tizen/20170908.063614
authorDenis Khalikov <d.khalikov@partner.samsung.com>
Thu, 22 Jun 2017 09:46:23 +0000 (12:46 +0300)
committerSeokHoon LEE <andy.shlee@samsung.com>
Tue, 29 Aug 2017 04:28:31 +0000 (04:28 +0000)
To prevent this kind of error:

gstwfdbasesrc.c: In function 'gst_wfd_base_src_get_vesa_resolution_and_set_to_src':
gstwfdbasesrc.c:4083:5: error: case label does not reduce to an integer constant
case GST_WFD_VESA_2560x1440P60:
     ^~~~

Change-Id: I0ee03e080ea8feff5ce4f93391172b0b084c11be
Signed-off-by: Denis Khalikov <d.khalikov@partner.samsung.com>
wfdmanager/wfdbase/gstwfdsinkmessage.h

index 7e42af8..c2a4668 100644 (file)
@@ -219,7 +219,7 @@ typedef enum {
 #define GST_WFD_VESA_1920x1200P30       (1 << 28)
 #define GST_WFD_VESA_1920x1200P60       (1 << 29)
 #define GST_WFD_VESA_2560x1440P30       (1 << 30)
-#define GST_WFD_VESA_2560x1440P60       (1 << 31)
+#define GST_WFD_VESA_2560x1440P60       (1UL << 31)
 #define GST_WFD_VESA_2560x1600P30       (1ULL << 32)
 #define GST_WFD_VESA_2560x1600P60       (1ULL << 33)