Merge pull request #448 from thaJeztah/19.03_backport_gofmt_pkg_parsers

[19.03 backport] pkg/parsers/kernel: gofmt hex value (preparation for Go 1.13+)
This commit is contained in:
Sebastiaan van Stijn 2020-01-23 20:18:49 +01:00 committed by GitHub
commit 8270df208b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,7 +44,7 @@ func GetKernelVersion() (*VersionInfo, error) {
}
KVI.major = int(dwVersion & 0xFF)
KVI.minor = int((dwVersion & 0XFF00) >> 8)
KVI.minor = int((dwVersion & 0xFF00) >> 8)
KVI.build = int((dwVersion & 0xFFFF0000) >> 16)
return KVI, nil