]> Cypherpunks repositories - gostls13.git/commit
math/big: add SetUint64 and Uint64 functions to *Int
authorLuit van Drongelen <luitvd@gmail.com>
Tue, 11 Dec 2012 17:19:10 +0000 (12:19 -0500)
committerRuss Cox <rsc@golang.org>
Tue, 11 Dec 2012 17:19:10 +0000 (12:19 -0500)
commitf4fc163d1773b54f422df91680df9efda583d67a
treeb2be6a8974bda899f0ec2985d25eb16cd27f807a
parent1d46fc44b780507c4d09d54c232f73397cbf4e6d
math/big: add SetUint64 and Uint64 functions to *Int

Implementation is mostly identical to passing a non-negative int64 to
SetInt64, and calling Int64 with a non-negative value in the *Int.
Fixes #4389.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6929048
src/pkg/math/big/int.go
src/pkg/math/big/int_test.go