From 30e192e7e88a1be5b67f0a543825c439d35c0e45 Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Fri, 5 Apr 2019 15:21:27 +0200 Subject: [PATCH] compiler: let the default 'low' slice bound be a uintptr --- compiler/compiler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {