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

Unified Diff: runtime/vm/bit_vector.cc

Issue 16566003: Small fix and cleanups. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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 | runtime/vm/flow_graph_type_propagator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/bit_vector.cc
===================================================================
--- runtime/vm/bit_vector.cc (revision 23692)
+++ runtime/vm/bit_vector.cc (working copy)
@@ -55,8 +55,10 @@
for (intptr_t i = 0; i < data_length_; i++) {
const uword before = data_[i];
const uword after = data_[i] | from->data_[i];
- if (before != after) changed = true;
- data_[i] = after;
+ if (before != after) {
+ changed = true;
+ data_[i] = after;
+ }
}
return changed;
}
@@ -68,8 +70,10 @@
for (intptr_t i = 0; i < data_length_; i++) {
const uword before = data_[i];
const uword after = data_[i] & ~from->data_[i];
- if (before != after) changed = true;
- data_[i] = after;
+ if (before != after) {
+ changed = true;
+ data_[i] = after;
+ }
}
return changed;
}
« no previous file with comments | « no previous file | runtime/vm/flow_graph_type_propagator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698