Merge pull request #2031 from reactormonk/high-cstring

Fixes #2030
This commit is contained in:
Andreas Rumpf 2015-02-04 10:39:49 +01:00
commit 7f14d0e782
4 changed files with 11 additions and 4 deletions

View file

@ -306,7 +306,7 @@ proc semLowHigh(c: PContext, n: PNode, m: TMagic): PNode =
var typ = skipTypes(n.sons[1].typ, abstractVarRange +
{tyTypeDesc, tyFieldAccessor})
case typ.kind
of tySequence, tyString, tyOpenArray, tyVarargs:
of tySequence, tyString, tyCString, tyOpenArray, tyVarargs:
n.typ = getSysType(tyInt)
of tyArrayConstr, tyArray:
n.typ = typ.sons[0] # indextype