From cf5c60f6f2c5d7d6dcad09bc30162b70ad01c181 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sat, 23 Sep 2017 10:47:09 -0700 Subject: [PATCH] scan: Add cast to silence Clang warning about converting enum types. --- src/language/lexer/scan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/language/lexer/scan.c b/src/language/lexer/scan.c index 6e9fc618e1..2cd66f0796 100644 --- a/src/language/lexer/scan.c +++ b/src/language/lexer/scan.c @@ -410,7 +410,7 @@ scan_type_to_string (enum scan_type type) #undef SCAN_TYPE default: - return token_type_to_name (type); + return token_type_to_name ((enum token_type) type); } } -- 2.30.2