mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-21 15:54:39 +01:00
Previously it could lead to contract violations for example consider this: A = Library{ Name:"A", Types: ["Sensors"] } B = Library{ Name:"B", Types: null } C = Library{ Name:"C", Types: ["Arduino"] } it results in: A<B (because B has Types==null and compare("A","B")<0) B<C (because B has Types==null and compare("B","C")<0) C<A (becuase C has Types=="Arduino" and the comparator returns -1) This commit fix this behavior