You can replace lines 93-95 with just this:
return minor == other.minor;