diff options
author | Araq <rumpf_a@web.de> | 2011-12-31 11:35:40 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-12-31 11:35:40 +0100 |
commit | 05fd30df436de4f8d489ec00fc7f6e31dd64dde2 (patch) | |
tree | 26a8fa04390dbc2c3b0f0843417da6322eda3aa7 | |
parent | c463a22dc94827e567177888d408b9a02fc23a7d (diff) | |
download | Nim-05fd30df436de4f8d489ec00fc7f6e31dd64dde2.tar.gz |
sysio: got rid of now unnecessary length check
-rwxr-xr-x | lib/system/sysio.nim | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/system/sysio.nim b/lib/system/sysio.nim index d012110f1..b0e2c567b 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") |