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

@ -144,7 +144,7 @@ proc evalOp(m: TMagic, n, a, b, c: PNode; idgen: IdGenerator; g: ModuleGraph): P
if a.typ.kind == tyString:
result = newIntNodeT(toInt128(a.strVal.len), n, idgen, g)
elif a.typ.kind == tyCstring:
result = newIntNodeT(toInt128(nimCStrLen(a.strVal)), n, idgen, g)
result = newIntNodeT(toInt128(nimCStrLen(a.strVal.cstring)), n, idgen, g)
else:
result = newIntNodeT(toInt128(a.len), n, idgen, g)
of mUnaryPlusI, mUnaryPlusF64: result = a # throw `+` away