From baa6a1cf7979c095c1081daa2a2d1134c76d2f1b Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 7 Mar 2021 22:51:21 +0100 Subject: misc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libgamma_name_of_subpixel_order.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libgamma_name_of_subpixel_order.c') diff --git a/libgamma_name_of_subpixel_order.c b/libgamma_name_of_subpixel_order.c index c3612bf..0a92609 100644 --- a/libgamma_name_of_subpixel_order.c +++ b/libgamma_name_of_subpixel_order.c @@ -14,9 +14,9 @@ * recognised (errno is not changed) */ const char * -libgamma_name_of_subpixel_order(int order) +libgamma_name_of_subpixel_order(enum libgamma_subpixel_order order) { - switch (order) { + switch ((int)order) { #define X(CONST, NAME, ...)\ case CONST:\ return NAME; -- cgit v1.2.3-70-g09d2