From e5e6c35250becfb5ea66368763bfce0518709dfc Mon Sep 17 00:00:00 2001 From: Xuejun Yang Date: Sat, 25 Jun 2011 14:15:08 -0600 Subject: [PATCH] make the output independent of hash table implementations This is more general fix than c3fe5f, which addressed output disparity to a lesser extend --- src/VariableSelector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/VariableSelector.cpp b/src/VariableSelector.cpp index 01e6edc4b..ae61ef425 100644 --- a/src/VariableSelector.cpp +++ b/src/VariableSelector.cpp @@ -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; jcompare_field(iv) > 0) { + if (ok_ivs[j]->name.compare(iv->name) > 0) { ok_ivs.insert(ok_ivs.begin() + j, iv); insert_middle = true; break;