scan: Add cast to silence Clang warning about converting enum types.
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 23 Sep 2017 17:47:09 +0000 (10:47 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 23 Sep 2017 17:47:09 +0000 (10:47 -0700)
src/language/lexer/scan.c

index 6e9fc618e1568727ef04c6c41f4bf5ae951b9538..2cd66f07962324ffc5909fe5329f2fb64d3f36a5 100644 (file)
@@ -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);
     }
 }