VersionString: Use multiplication instead of bitshift for version IDs

this makes them more recognizable, and also fixes #4630.

This is technically a BC break (behavioural change), but since nothing appears to use this functionality anyway except PM itself, I don't think it matters.
This commit is contained in:
Dylan K. Taylor 2021-12-15 14:32:50 +00:00
parent de82424fb2
commit 482bc462d3
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -68,7 +68,7 @@ class VersionString{
}
public function getNumber() : int{
return (($this->major << 9) | ($this->minor << 5) | $this->patch);
return (($this->major * 1_000_000) + ($this->minor * 1_000) + $this->patch);
}
public function getBaseVersion() : string{