Index: src/StatusBar.cxx
--- src/StatusBar.cxx.orig
+++ src/StatusBar.cxx
@@ -42,7 +42,7 @@ StatusBar::StatusBar(EventLoop &event_loop,
 
 #ifdef ENABLE_COLORS
 	if (options.enable_colors)
-		wbkgd(window.w, COLOR_PAIR(Style::STATUS));
+		wbkgd(window.w, COLOR_PAIR((int)Style::STATUS));
 #endif
 }
 
