Fix internal KotlinVersion representation that caused invalid comparison

This commit is contained in:
Ilya Gorbunov
2017-09-05 19:46:56 +03:00
parent 5bf4540458
commit 599113b30f
2 changed files with 36 additions and 1 deletions
@@ -21,7 +21,7 @@ public class KotlinVersion(val major: Int, val minor: Int, val patch: Int) : Com
require(major in 0..MAX_COMPONENT_VALUE && minor in 0..MAX_COMPONENT_VALUE && patch in 0..MAX_COMPONENT_VALUE) {
"Version components are out of range: $major.$minor.$patch"
}
return major shl 16 + minor shl 8 + patch
return major.shl(16) + minor.shl(8) + patch
}
/**