From 05fd30df436de4f8d489ec00fc7f6e31dd64dde2 Mon Sep 17 00:00:00 2001 From: Araq Date: Sat, 31 Dec 2011 11:35:40 +0100 Subject: [PATCH] sysio: got rid of now unnecessary length check --- lib/system/sysio.nim | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/system/sysio.nim b/lib/system/sysio.nim index d012110f1c..b0e2c567b5 100755 --- a/lib/system/sysio.nim +++ b/lib/system/sysio.nim @@ -112,8 +112,6 @@ proc rawFileSize(file: TFile): int = proc readAllFile(file: TFile, len: int): string = # We aquire the filesize beforehand and hope it doesn't change. # Speeds things up. - if len >= high(int): - raiseEIO("file too big to fit in memory") result = newString(int(len)) if readBuffer(file, addr(result[0]), int(len)) != len: raiseEIO("error while reading from file")