commit | 960637781ca9546ea2db913e48afd7eccbdadfa9 | [log] [tgz] |
---|---|---|
author | Cherry Zhang <cherryyz@google.com> | Tue Jan 08 13:19:48 2019 -0500 |
committer | Ian Lance Taylor <iant@golang.org> | Wed Jan 09 00:04:43 2019 +0000 |
tree | 99f9ddccc4e6d8d5611379e675975dbd914780c2 | |
parent | 085ef4556ec810a5a9c422e7b86d98441dc92e86 [diff] |
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>