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

Issue 247083002: Avoid comparing smi to mint in smi.toString(). (Closed)

Created:
6 years, 8 months ago by Lasse Reichstein Nielsen
Modified:
6 years, 8 months ago
Reviewers:
Anders Johnsen
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Avoid comparing smi to mint in smi.toString(). As it happens 10^10 has 11 digits, not 10. R=ajohnsen@google.com Committed: https://code.google.com/p/dart/source/detail?r=35249

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -20 lines) Patch
M runtime/lib/integers.dart View 1 4 chunks +17 lines, -20 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Lasse Reichstein Nielsen
6 years, 8 months ago (2014-04-22 09:19:51 UTC) #1
Anders Johnsen
LGTM https://codereview.chromium.org/247083002/diff/1/runtime/lib/integers.dart File runtime/lib/integers.dart (right): https://codereview.chromium.org/247083002/diff/1/runtime/lib/integers.dart#newcode317 runtime/lib/integers.dart:317: if (smi < 100) return 11; Add comment ...
6 years, 8 months ago (2014-04-22 09:21:47 UTC) #2
Lasse Reichstein Nielsen
6 years, 8 months ago (2014-04-22 09:26:43 UTC) #3
Message was sent while issue was closed.
Committed patchset #2 manually as r35249 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698