This commit is contained in:
Timothee Cour 2021-03-31 02:27:02 -07:00 • committed by GitHub
commit b18307f940
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 1 deletions

View file

@ -415,7 +415,8 @@ proc opConv(c: PCtx; dest: var TFullReg, src: TFullReg, desttyp, srctyp: PType):
else:
internalError(c.config, "cannot convert to string " & desttyp.typeToString)
else:
case skipTypes(desttyp, abstractVarRange).kind
let desttyp = skipTypes(desttyp, abstractVarRange)
case desttyp.kind
of tyInt..tyInt64:
dest.ensureKind(rkInt)
case skipTypes(srctyp, abstractRange).kind