diff --git a/compiler/compiler.go b/compiler/compiler.go index 5cb209b7..70b7f2a0 100644 --- a/compiler/compiler.go +++ b/compiler/compiler.go @@ -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 {