get rid of the warnings during bootstrapping (#18741)

* fix bootstrapping hints and warnings

* revert removals in ccgtypes
This commit is contained in:
Miran 2021-08-24 17:15:26 +02:00 • committed by GitHub
commit 24178bf8aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View file

@ -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