summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm2/ecore_drm2_device.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2019-11-14 12:21:40 -0500
committerChris Michael <cp.michael@samsung.com>2019-11-14 12:21:40 -0500
commit2288c92bc5422c1a5df5fa4f6aabc2307a297e9d (patch)
treee9daed1127a606f9bf7e6a33982197e109097b22 /src/lib/ecore_drm2/ecore_drm2_device.c
parent9ca573f40f1065cc717c0c5aabb787671bab852b (diff)
ecore-drm2: Fix issue of shifting 1 by more than 32bits
Based on 9ca573f40f1065cc717c0c5aabb787671bab852b, this patch fixes potential undefined behaviour on 64 bit systems. @fix
Diffstat (limited to 'src/lib/ecore_drm2/ecore_drm2_device.c')
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_device.c b/src/lib/ecore_drm2/ecore_drm2_device.c
index c86df1a271..7602114453 100644
--- a/src/lib/ecore_drm2/ecore_drm2_device.c
+++ b/src/lib/ecore_drm2/ecore_drm2_device.c
@@ -487,7 +487,7 @@ _drm2_atomic_state_plane_fill(Ecore_Drm2_Plane_State *pstate, int fd)
487 { 487 {
488 pstate->supported_rotations |= r; 488 pstate->supported_rotations |= r;
489 pstate->rotation_map[ffs(r)] = 489 pstate->rotation_map[ffs(r)] =
490 1 << prop->enums[k].value; 490 1ULL << prop->enums[k].value;
491 } 491 }
492 } 492 }
493 } 493 }