[PATCH 17/18] code_io.c: Fix file size test

Tim Hentenaar <[email protected]> Sat, 4 Jul 2015 13:43:31 +0200
Newsgroups gmane.comp.gnu.indent.bugs
Message-ID <[email protected]>
Signed-off-by: Tim Hentenaar <[email protected]>
---
 src/code_io.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/code_io.c b/src/code_io.c
index 2f00c83..016eb86 100644
--- a/src/code_io.c
+++ b/src/code_io.c
@@ -298,7 +298,7 @@ extern file_buffer_ty * read_file(
         }
     }
 
-    if (file_stats->st_size > SSIZE_MAX)
+    if ((size_t)file_stats->st_size >= SSIZE_MAX)
     {
         fatal(_("File %s is too big to read"), filename);
     }
-- 
2.3.6