get rid of the warnings during bootstrapping (#18741)
* fix bootstrapping hints and warnings * revert removals in ccgtypes
This commit is contained in:
parent
9674ff4361
commit
24178bf8aa
4 changed files with 5 additions and 5 deletions
|
|
@ -104,7 +104,7 @@ proc fillBuffer(L: var TBaseLexer) =
|
|||
oldBufLen = L.bufLen
|
||||
L.bufLen = L.bufLen * 2
|
||||
L.bufStorage.setLen(L.bufLen)
|
||||
L.buf = L.bufStorage
|
||||
L.buf = L.bufStorage.cstring
|
||||
assert(L.bufLen - oldBufLen == oldBufLen)
|
||||
charsRead = llStreamRead(L.stream, addr(L.buf[oldBufLen]),
|
||||
oldBufLen)
|
||||
|
|
@ -147,7 +147,7 @@ proc openBaseLexer(L: var TBaseLexer, inputstream: PLLStream, bufLen = 8192) =
|
|||
L.bufpos = 0
|
||||
L.offsetBase = 0
|
||||
L.bufStorage = newString(bufLen)
|
||||
L.buf = L.bufStorage
|
||||
L.buf = L.bufStorage.cstring
|
||||
L.bufLen = bufLen
|
||||
L.sentinel = bufLen - 1
|
||||
L.lineStart = 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue