diff options
author | Nathan Binkert <nate@binkert.org> | 2009-05-12 22:33:05 -0700 |
---|---|---|
committer | Nathan Binkert <nate@binkert.org> | 2009-05-12 22:33:05 -0700 |
commit | 016d472c462d358935533d957d447f48433e6f1a (patch) | |
tree | a1e62d06ce6f96baaff906cc2cd876de34899588 /src/mem/slicc/symbols | |
parent | 7389dc63b2b0df640da50bb70b6e17573ab90f35 (diff) | |
download | gem5-016d472c462d358935533d957d447f48433e6f1a.tar.xz |
ruby: remove random uint typedef and use unsigned
Diffstat (limited to 'src/mem/slicc/symbols')
-rw-r--r-- | src/mem/slicc/symbols/SymbolTable.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mem/slicc/symbols/SymbolTable.cc b/src/mem/slicc/symbols/SymbolTable.cc index 70391f838..e598ffcb4 100644 --- a/src/mem/slicc/symbols/SymbolTable.cc +++ b/src/mem/slicc/symbols/SymbolTable.cc @@ -477,8 +477,8 @@ void SymbolTable::writeChipFiles(string path) const string child_types = var->lookupPair("child_types"); string::iterator it = child_types.begin(); - uint num_types = 0; - for(uint t=0;t<child_types.size();t++){ + unsigned num_types = 0; + for(unsigned t=0;t<child_types.size();t++){ if(child_types.at(t) == '<'){ num_types++; } @@ -488,10 +488,10 @@ void SymbolTable::writeChipFiles(string path) const string* ids = new string[num_types]; int type_idx = 0; bool id_done = false; - for(uint t=0;t<child_types.size();t++){ + for(unsigned t=0;t<child_types.size();t++){ if(child_types[t] == '<'){ id_done = false; - uint r; + unsigned r; for(r=t+1;child_types.at(r)!='>';r++){ if(r == child_types.size()){ cerr << "Parse error in child_types" << endl; @@ -509,7 +509,7 @@ void SymbolTable::writeChipFiles(string path) const } } - for(uint t=0;t<num_types;t++){ + for(unsigned t=0;t<num_types;t++){ if(t==0) sstr << " if(strcmp(" << child_selector << ", \"" << ids[t] << "\") == 0)" << endl; else |