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

Unified Diff: corelib/src/implementation/dual_pivot_quicksort.dart

Issue 8966029: Report errors and warnings for hiding elements, issue 572. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixes for comments Created 9 years 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 | « compiler/lib/implementation/string.dart ('k') | corelib/src/implementation/promise_implementation.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: corelib/src/implementation/dual_pivot_quicksort.dart
diff --git a/corelib/src/implementation/dual_pivot_quicksort.dart b/corelib/src/implementation/dual_pivot_quicksort.dart
index 38b3b96ddfb2f083285accc65c9ec038d62605a9..c822ef84268ce60dfdf68fea8f90faba7f3e5465 100644
--- a/corelib/src/implementation/dual_pivot_quicksort.dart
+++ b/corelib/src/implementation/dual_pivot_quicksort.dart
@@ -153,7 +153,7 @@ class DualPivotQuicksort {
// short amount of time. The invariant will be restored when the
// pivots are put into their final positions.
while (true) {
- int comp = compare(a[great], pivot);
+ comp = compare(a[great], pivot);
if (comp > 0) {
great--;
// This is the only location in the while-loop where a new
@@ -216,7 +216,7 @@ class DualPivotQuicksort {
continue;
} else {
// a[great] <= pivot2.
- int comp = compare(a[great], pivot1);
+ comp = compare(a[great], pivot1);
if (comp < 0) {
// Triple exchange.
a[k] = a[less];
@@ -306,7 +306,7 @@ class DualPivotQuicksort {
continue;
} else {
// a[great] < pivot2.
- int comp = compare(a[great], pivot1);
+ comp = compare(a[great], pivot1);
if (comp < 0) {
// Triple exchange.
a[k] = a[less];
« no previous file with comments | « compiler/lib/implementation/string.dart ('k') | corelib/src/implementation/promise_implementation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698