Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(546)

Issue 9620002: Handle Bigint.toCString when remainder equals 0. (Closed)

Created:
8 years, 9 months ago by floitsch
Modified:
8 years, 9 months ago
Reviewers:
kasperl
CC:
reviews_dartlang.org, siva
Visibility:
Public.

Description

Handle Bigint.toCString when remainder equals 0. Committed: https://code.google.com/p/dart/source/detail?r=5081

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -2 lines) Patch
M runtime/vm/bigint_operations.cc View 1 1 chunk +4 lines, -2 lines 0 comments Download
M runtime/vm/bigint_operations_test.cc View 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
floitsch
8 years, 9 months ago (2012-03-07 12:43:45 UTC) #1
kasperl
LGTM with a small nit: https://chromiumcodereview.appspot.com/9620002/diff/1/runtime/vm/bigint_operations.cc File runtime/vm/bigint_operations.cc (right): https://chromiumcodereview.appspot.com/9620002/diff/1/runtime/vm/bigint_operations.cc#newcode394 runtime/vm/bigint_operations.cc:394: intptr_t part = 0; ...
8 years, 9 months ago (2012-03-07 12:47:01 UTC) #2
floitsch
8 years, 9 months ago (2012-03-07 12:51:26 UTC) #3
https://chromiumcodereview.appspot.com/9620002/diff/1/runtime/vm/bigint_opera...
File runtime/vm/bigint_operations.cc (right):

https://chromiumcodereview.appspot.com/9620002/diff/1/runtime/vm/bigint_opera...
runtime/vm/bigint_operations.cc:394: intptr_t part = 0;
On 2012/03/07 12:47:01, kasperl wrote:
> intptr_t part = (remainder.Length() == 1)
>    ? static_cast<intptr_t>(remainder.GetChunkAt(0))
>    : 0;

Done.

Powered by Google App Engine
This is Rietveld 408576698