diff --git a/src/nano.h b/src/nano.h
index 669c172cbdf40c63d012f3dc6cbf17aaba887727..26ef24b593787a35be9bcec9d0ef1cb2e462af85 100644
--- a/src/nano.h
+++ b/src/nano.h
@@ -160,7 +160,7 @@ typedef struct openfilestruct {
 				 * position. */
     int file_current_y;		/* Current file's y-coordinate
 				 * position. */
-    int file_flags;		/* Current file's flags: modification
+    long file_flags;		/* Current file's flags: modification
 				 * status (and marking status, if
 				 * available). */
     int file_placewewant;	/* Current file's place we want. */