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

Unified Diff: courgette/assembly_program.cc

Issue 149597: Code changes to get the code to compile under GCC.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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 | « courgette/adjustment_method_2.cc ('k') | courgette/courgette.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: courgette/assembly_program.cc
===================================================================
--- courgette/assembly_program.cc (revision 21002)
+++ courgette/assembly_program.cc (working copy)
@@ -85,8 +85,8 @@
} // namespace
AssemblyProgram::AssemblyProgram()
- : image_base_(0),
- byte_instruction_cache_(NULL) {
+ : byte_instruction_cache_(NULL),
+ image_base_(0) {
}
static void DeleteContainedLabels(const RVAToLabel& labels) {
@@ -209,9 +209,9 @@
int used = 0;
for (RVAToLabel::iterator p = labels->begin(); p != labels->end(); ++p) {
- size_t index = p->second->index_;
+ int index = p->second->index_;
if (index != Label::kNoIndex) {
- while (index >= available.size())
+ while (static_cast<size_t>(index) >= available.size())
available.push_back(true);
available.at(index) = false;
++used;
@@ -244,7 +244,6 @@
// label?
//
int fill_backward_count = 0;
- int backward_refs = 0;
prev = 0;
for (RVAToLabel::reverse_iterator p = labels->rbegin();
p != labels->rend();
Property changes on: courgette/assembly_program.cc
___________________________________________________________________
Name: svn:eol-style
+ LF
« no previous file with comments | « courgette/adjustment_method_2.cc ('k') | courgette/courgette.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698