Skip to content

Commit

Permalink
make the output independent of hash table implementations
Browse files Browse the repository at this point in the history
This is more general fix than c3fe5f, which addressed output disparity to a lesser extend
  • Loading branch information
Xuejun Yang committed Jun 25, 2011
1 parent b812211 commit e5e6c35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/VariableSelector.cpp
Expand Up @@ -1354,7 +1354,7 @@ VariableSelector::itemize_array(CGContext& cg_context, const ArrayVariable* av)
// have to sort them to generate consistant outputs across diff. platforms
bool insert_middle = false;
for (size_t j=0; j<ok_ivs.size(); j++) {
if (ok_ivs[j]->compare_field(iv) > 0) {
if (ok_ivs[j]->name.compare(iv->name) > 0) {
ok_ivs.insert(ok_ivs.begin() + j, iv);
insert_middle = true;
break;
Expand Down

0 comments on commit e5e6c35

Please sign in to comment.