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_const_of_connector_type.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libgamma_const_of_connector_type.c') diff --git a/libgamma_const_of_connector_type.c b/libgamma_const_of_connector_type.c index 5958953..31bd3cc 100644 --- a/libgamma_const_of_connector_type.c +++ b/libgamma_const_of_connector_type.c @@ -12,9 +12,9 @@ * `NULL` if not recognised (errno is not changed) */ const char * -libgamma_const_of_connector_type(int connector) +libgamma_const_of_connector_type(enum libgamma_connector_type connector) { - switch (connector) { + switch ((int)connector) { #define X(CONST, ...)\ case CONST:\ return #CONST; -- cgit v1.2.3-70-g09d2