commit | d577748c041aa6df599218f3cb31697ecf032730 | [log] [tgz] |
---|---|---|
author | Vladimir Marko <vmarko@google.com> | Wed Nov 12 17:02:02 2014 +0000 |
committer | Vladimir Marko <vmarko@google.com> | Fri Nov 14 18:09:56 2014 +0000 |
tree | ffa397300b8ee367cd7153a4482df26db64639e6 | |
parent | 59321e0e10ea09694efecf6154704e2743b9bffd [diff] |
Fix LinkFieldsComparator. Define order for primitive types with the same sizes. Previously, the comparator would consider the fields equal so the order would depend on std::sort() implementation. Changing the STL implementation could silently change the field offsets. (And, unlike std::stable_sort(), the std::sort() doesn't even need to be deterministic.) Change-Id: I91fa562f82447606aced64643bea8c70784766b5