Returns > 0 if v1 > v2; zero if equal; < 0 if v1 < v2 Only Major and Minor parts are compared, the trailer is ignored.
(v1, v2 int)
| 684 | // Returns > 0 if v1 > v2; zero if equal; < 0 if v1 < v2 |
| 685 | // Only Major and Minor parts are compared, the trailer is ignored. |
| 686 | func versionCompare(v1, v2 int) int { |
| 687 | return (v1 >> 8) - (v2 >> 8) |
| 688 | } |
| 689 | |
| 690 | func max(a, b int) int { |
| 691 | if a > b { |
no outgoing calls
no test coverage detected
searching dependent graphs…