aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJulien Dessaux2022-01-28 18:07:07 +0100
committerJulien Dessaux2022-01-28 18:07:07 +0100
commitf8b15bb7c78dab8d9eb73aa96db44b24e07f5979 (patch)
treedc78924ad02021445980991ab17ee1599db3039e /src
parentFixed stack transfert sizing bug (diff)
downloadnimfunge98-f8b15bb7c78dab8d9eb73aa96db44b24e07f5979.tar.gz
nimfunge98-f8b15bb7c78dab8d9eb73aa96db44b24e07f5979.tar.bz2
nimfunge98-f8b15bb7c78dab8d9eb73aa96db44b24e07f5979.zip
Fixed deprecated usage of readChars
Diffstat (limited to '')
-rw-r--r--src/field.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/field.nim b/src/field.nim
index 3f419f4..e94dba7 100644
--- a/src/field.nim
+++ b/src/field.nim
@@ -79,7 +79,7 @@ proc Load*(filename: string): ref Field =
var data: array[4096, char]
var lastReadIsCR = false
while true:
- let n = file.readChars(data, 0, 4096)
+ let n = file.readChars(data)
if n <= 0:
if f.lines.len == 0:
if l == nil: # we got en empty file!