compiler: let the default 'low' slice bound be a uintptr

This commit is contained in:
Ayke van Laethem
2019-04-05 15:21:27 +02:00
committed by Ron Evans
parent a965882a34
commit 30e192e7e8
+2 -2
View File
@@ -1937,8 +1937,8 @@ func (c *Compiler) parseExpr(frame *Frame, expr ssa.Value) (llvm.Value, error) {
}
}
} else {
lowType = types.Typ[types.Int]
low = llvm.ConstInt(c.intType, 0, false)
lowType = types.Typ[types.Uintptr]
low = llvm.ConstInt(c.uintptrType, 0, false)
}
if expr.High != nil {