scan: Add cast to silence Clang warning about converting enum types.
[pspp] / 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);
     }
 }