* Fixes #12187 * Point to fork of compactdict Since the original repo is now archived / read-only
This commit is contained in:
parent
edb24b7ce0
commit
00c31e8766
11 changed files with 44 additions and 21 deletions
|
|
@ -416,7 +416,7 @@ iterator memSlices*(mfile: MemFile, delim = '\l', eat = '\r'): MemSlice {.inline
|
|||
ms.data = mfile.mem
|
||||
var remaining = mfile.size
|
||||
while remaining > 0:
|
||||
ending = c_memchr(ms.data, delim, remaining)
|
||||
ending = c_memchr(ms.data, delim, csize remaining)
|
||||
if ending == nil: # unterminated final slice
|
||||
ms.size = remaining # Weird case..check eat?
|
||||
yield ms
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue