summary refs log tree commit diff stats
path: root/lib/system/sysio.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-12-31 11:35:40 +0100
committerAraq <rumpf_a@web.de>2011-12-31 11:35:40 +0100
commit05fd30df436de4f8d489ec00fc7f6e31dd64dde2 (patch)
tree26a8fa04390dbc2c3b0f0843417da6322eda3aa7 /lib/system/sysio.nim
parentc463a22dc94827e567177888d408b9a02fc23a7d (diff)
downloadNim-05fd30df436de4f8d489ec00fc7f6e31dd64dde2.tar.gz
sysio: got rid of now unnecessary length check
Diffstat (limited to 'lib/system/sysio.nim')
-rwxr-xr-xlib/system/sysio.nim2
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")