From cda66b80878c0c0f0799a145b41895c1149da88a Mon Sep 17 00:00:00 2001 From: Stephen Hines Date: Mon, 8 Feb 2016 23:22:29 -0800 Subject: Fix narrowing conversion between int <-> unscoped enum. Bug: http://b/26747884 Change-Id: Ife86534c45642cdeb004e68b766c123a4131d6fe --- gralloc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gralloc.cpp b/gralloc.cpp index 8162e91..421aeb5 100644 --- a/gralloc.cpp +++ b/gralloc.cpp @@ -62,7 +62,7 @@ static int drm_mod_perform(const struct gralloc_module_t *mod, int op, ...) va_start(args, op); switch (op) { - case GRALLOC_MODULE_PERFORM_GET_DRM_FD: + case static_cast(GRALLOC_MODULE_PERFORM_GET_DRM_FD): { int *fd = va_arg(args, int *); *fd = gralloc_drm_get_fd(dmod->drm); -- cgit v1.2.3