diff options
author | Julien Dessaux | 2022-01-28 18:07:07 +0100 |
---|---|---|
committer | Julien Dessaux | 2022-01-28 18:07:07 +0100 |
commit | f8b15bb7c78dab8d9eb73aa96db44b24e07f5979 (patch) | |
tree | dc78924ad02021445980991ab17ee1599db3039e | |
parent | Fixed stack transfert sizing bug (diff) | |
download | nimfunge98-f8b15bb7c78dab8d9eb73aa96db44b24e07f5979.tar.gz nimfunge98-f8b15bb7c78dab8d9eb73aa96db44b24e07f5979.tar.bz2 nimfunge98-f8b15bb7c78dab8d9eb73aa96db44b24e07f5979.zip |
Fixed deprecated usage of readChars
-rw-r--r-- | src/field.nim | 2 |
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! |