aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2015-04-21 12:47:11 -0700
committerAlan Donovan <adonovan@google.com>2015-04-22 13:11:07 +0000
commit3f91a017f8f67cb9a744cf5d0a8b5db34a95808d (patch)
treea52d1f9d5c0531aff62deaaf7ea002e4ff2cbfbc /src/runtime
parent723f86537c362f2f86c82ae827f689c23b866f00 (diff)
downloadgo-3f91a017f8f67cb9a744cf5d0a8b5db34a95808d.tar.xz
go/exact: future-proof API: permit setting precision limit
Added a prec parameter to MakeFromLiteral (which currently must always be 0). This will permit go/types to provide an upper limit for the precision of constant values, eventually. Overflows can be returned with a special Overflow value (very much like the current Unknown values). This is a minimal change that should prevent the need for future backward-incompatible API changes. Change-Id: I6c9390d7cc4810375e26c53ed3bde5a383392330 Reviewed-on: https://go-review.googlesource.com/9168 Run-TryBot: Robert Griesemer <gri@golang.org> Reviewed-by: Alan Donovan <adonovan@google.com>
Diffstat (limited to 'src/runtime')
0 files changed, 0 insertions, 0 deletions