mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-04 11:07:46 +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 {
|
||||
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 {
|
||||
|
||||
Reference in New Issue
Block a user