mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-21 12:59:04 +00:00
compiler: let the default 'low' slice bound be a uintptr
This commit is contained in:
committed by
Ron Evans
parent
a965882a34
commit
30e192e7e8
@@ -1937,8 +1937,8 @@ func (c *Compiler) parseExpr(frame *Frame, expr ssa.Value) (llvm.Value, error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
lowType = types.Typ[types.Int]
|
lowType = types.Typ[types.Uintptr]
|
||||||
low = llvm.ConstInt(c.intType, 0, false)
|
low = llvm.ConstInt(c.uintptrType, 0, false)
|
||||||
}
|
}
|
||||||
|
|
||||||
if expr.High != nil {
|
if expr.High != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user