Silence a GCC type warning
authorEdgar A. Bering IV <trizor@gmail.com>
Sat, 20 Feb 2021 10:35:42 +0000 (12:35 +0200)
committerEdgar A. Bering IV <trizor@gmail.com>
Sat, 20 Feb 2021 10:35:52 +0000 (12:35 +0200)
Closes #1758

crawl-ref/source/spl-book.cc

index d7ec922..a9708f5 100644 (file)
@@ -784,7 +784,8 @@ private:
                                 || current_action == action::cast &&
                                     spell_is_useless(spell.spell, true, true);
 
-            const int colour = unavailable ? DARKGRAY : entry_colour(spell);
+            const colour_t colour = unavailable ? (colour_t) DARKGRAY
+                                                : entry_colour(spell);
 
             ostringstream desc;
             desc << "<" << colour_to_str(colour) << ">";