Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(176)

Issue 6929048: code review 6929048: math/big: add SetUint64 and Uint64 functions to *Int (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 7 months ago by Luit
Modified:
12 years, 7 months ago
Reviewers:
CC:
golang-dev, rsc
Visibility:
Public.

Description

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 issue 4389.

Patch Set 1 #

Patch Set 2 : diff -r 7b9e9fc59eb5 https://code.google.com/p/go/ #

Patch Set 3 : diff -r 5e70ca431cff https://code.google.com/p/go/ #

Total comments: 1

Patch Set 4 : diff -r 5e70ca431cff https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -0 lines) Patch
M src/pkg/math/big/int.go View 1 2 chunks +20 lines, -0 lines 0 comments Download
M src/pkg/math/big/int_test.go View 1 2 3 1 chunk +30 lines, -0 lines 0 comments Download

Messages

Total messages: 5
Luit
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
12 years, 7 months ago (2012-12-11 16:31:26 UTC) #1
rsc
Looks good but please add a test using String too. The routines are clearly correct ...
12 years, 7 months ago (2012-12-11 16:45:34 UTC) #2
Luit
Hello golang-dev@googlegroups.com, rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 7 months ago (2012-12-11 17:02:53 UTC) #3
rsc
LGTM
12 years, 7 months ago (2012-12-11 17:14:13 UTC) #4
rsc
12 years, 7 months ago (2012-12-11 17:19:19 UTC) #5
*** Submitted as https://code.google.com/p/go/source/detail?r=954a79ee3ea8 ***

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 issue 4389.

R=golang-dev, rsc
CC=golang-dev
https://codereview.appspot.com/6929048

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b