compiler: use int type for len & cap in slice value

Slice value expression has backend type a struct of a pointer and
two ints. Make sure the len and cap are converted to int when
creating slice value expression.

Change-Id: I93dd83a59ed5c8df4d51db0319bfd59e099340a7
Reviewed-on: https://go-review.googlesource.com/c/156897
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
1 file changed