Consider non-const overload before considering const overload in Python bindings

This commit is contained in:
rdb 2015-11-20 20:23:37 +01:00
parent f0e8dd4117
commit 4c61db6374

View File

@ -3992,6 +3992,11 @@ bool RemapCompareLess(FunctionRemap *in1, FunctionRemap *in2) {
assert(in1 != NULL);
assert(in2 != NULL);
if (in1->_const_method != in2->_const_method) {
// Non-const methods should come first.
return in2->_const_method;
}
if (in1->_parameters.size() != in2->_parameters.size()) {
return (in1->_parameters.size() > in2->_parameters.size());
}