diff --git a/src/winio.c b/src/winio.c
index 5ff803f02c1c56785f47c3513eae786b4dfa55c9..d2b574fd57e76ef730f06a3d9cf2b41661bb4ecc 100644
--- a/src/winio.c
+++ b/src/winio.c
@@ -2224,7 +2224,7 @@ void statusq_abort(void)
 
 void titlebar(const char *path)
 {
-    size_t space;
+    int space;
 	/* The space we have available for display. */
     size_t verlen = strlen(VERMSG) + 1;
 	/* The length of the version message. */