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

Unified Diff: pkg/intl/lib/number_format.dart

Issue 11099014: Small changes for spec updates/editor suggestions (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/intl/lib/src/date_format_field.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/intl/lib/number_format.dart
===================================================================
--- pkg/intl/lib/number_format.dart (revision 13424)
+++ pkg/intl/lib/number_format.dart (working copy)
@@ -158,7 +158,7 @@
var paddingDigits = new StringBuffer();
while ((intValue & 0x7fffffff) != intValue) {
paddingDigits.add(symbols.ZERO_DIGIT);
- intValue = (intValue / 10).toInt();
+ intValue = intValue ~/ 10;
}
var integerDigits = "${intValue}${paddingDigits}".charCodes();
var digitLength = integerDigits.length;
« no previous file with comments | « no previous file | pkg/intl/lib/src/date_format_field.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698