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
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue